vanilla-application-yaga/controllers/class.yagacontroller.php
2013-10-24 13:14:52 -05:00

44 lines
1.1 KiB
PHP
Executable File

<?php if(!defined('APPLICATION')) exit();
/* Copyright 2013 Zachary Doll */
/**
* This is the base class for controllers throughout the gamification applicati0n.
*
* @since 1.0
* @package Yaga
*/
class YagaController extends Gdn_Controller {
/** @var array List of objects to prep. They will be available as $this->$Name. */
public $Uses = array('Form');
/**
* If you use a constructor, always call parent.
* Delete this if you don't need it.
*
* @access public
*/
public function __construct() {
parent::__construct();
}
/**
* This is a good place to include JS, CSS, and modules used by all methods of this controller.
*
* Always called by dispatcher before controller's requested method.
*
* @since 1.0
* @access public
*/
public function Initialize() {
// There are 4 delivery types used by Render().
// DELIVERY_TYPE_ALL is the default and indicates an entire page view.
if($this->DeliveryType() == DELIVERY_TYPE_ALL)
$this->Head = new HeadModule($this);
// Call Gdn_Controller's Initialize() as well.
parent::Initialize();
}
}