function __construct($template) { parent::__construct($template); # see if we're running sablo on PHP 4 if (!class_exists('DomDocument')) { die("Couldn't find valid XSLT interface."); } }
public function __construct(AbstractModel $model, array $config) { parent::__construct($model, $config); Head::getInstance()->link(CSS_DIR . 'style.css'); if (isset($this->config['style'])) { Head::getInstance()->link($this->config['style']); } }
public function __construct($action, $token, $vars) { parent::__construct(); $this->layout = 'new_admin.html.twig'; $this->addVar('action', $action); $this->addVar('token', $token); $this->addVar('vars', $vars); }
public function __construct($post, $action, $cancel, $categories) { parent::__construct(); $this->layout = 'post_modif.html.twig'; $this->addVar('post', $post); $this->addVar('action', $action); $this->addVar('cancel', $cancel); $this->addVar('categories', $categories); }
public function __construct($action, $cancel, $categories, $vars = array()) { parent::__construct(); $this->layout = 'post_add.html.twig'; $this->addVar('action', $action); $this->addVar('cancel', $cancel); $this->addVar('categories', $categories); $this->addVar('vars', $vars); }
/** * Creates a new {@link DebugView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('debug', 'Debug', $smarty); /* fetch the test suite page */ try { ob_start(); $test = new M2MTestSuite(); $test->run(new HtmlReporter()); } finally { $this->smarty->assign('testResults', ob_get_clean()); } }
/** * Constructor * * Register Zend_View_Stream stream wrapper if short tags are disabled. * * @param array $config * @return void */ public function __construct($config = array()) { $this->_useViewStream = (bool) ini_get('short_open_tag') ? false : true; if ($this->_useViewStream) { if (!in_array('zend.view', stream_get_wrappers())) { stream_wrapper_register('zend.view', 'Zend\\View\\Stream'); } } if (array_key_exists('useStreamWrapper', $config)) { $this->setUseStreamWrapper($config['useStreamWrapper']); } parent::__construct($config); }
public function __construct() { parent::__construct(); }
/** * Creates a new {@link IndexView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('index', 'M2M Connect', $smarty); }
public function __construct($template, $model) { parent::__construct($template, $model); }
public function __construct(IDataGridComponent &$datagridcolumn) { parent::__construct(); $this->setModel($datagridcolumn); }
/** * Creates a new {@link ErrorView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('error', 'Error', $smarty); }
/** * Regular objects in Agile Toolkit use init() and are added through add(). * Application class is differente, you use "new" keyword because it's the * first class to be created. That's why constructor will perform quite a * bit of initialization. * * Do not redefine constructor but instead use init(); * * $realm defines a top-level name of your application. This impacts all * id= prefixes in your HTML code, form field names and many other things, * such as session name. If you have two application classes which are part * of same web app and may want to use same realm, but in other cases it's * preferably that you keep realm unique on your domain in the interests * of security. * * @param string $realm Will become $app->name * @param array $options */ public function __construct($realm = null, $options = array()) { parent::__construct($options); if ($realm === null) { $realm = get_class($this); } $this->owner = $this; $this->name = $realm; $this->app = $this; $this->api = $this->app; // compatibility with ATK 4.2 and lower // Profiler is a class for benchmarking your application. All calls to pr /**/ $this->pr = new Dummy(); try { $this->_beforeInit(); $this->init(); } catch (Exception $e) { // This exception is used to abort initialisation of the objects, // but when normal rendering is still required if ($e instanceof Exception_StopInit) { return; } // Handles output of the exception $this->caughtException($e); } }
public function __construct(IDataGridComponent &$datagridcolumn) { parent::__construct(); $this->_datagridcolumn =& $datagridcolumn; }
/** * Creates a new {@link UpdatesView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('updates', 'Check Updates', $smarty); $smarty->assign('updates', array()); }
/** * Creates a new {@link RegisterView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('register', 'Register', $smarty); }
/** * Creates a new {@link LogoutView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('logout', 'Logged Out', $smarty); }
/** * Creates a new {@link StatusesView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('statuses', 'View Statuses', $smarty); $smarty->assign('boards', array()); }
function __construct($template) { parent::__construct($template); }
public function __construct(IDataGridComposite &$datagrid) { parent::__construct(); $this->setModel($datagrid); }
/** * Creates a new {@link LoggedInView}. * @param $smarty Smarty The smarty template. */ public function __construct($smarty) { parent::__construct('loggedin', 'Logged In', $smarty); }
public function __construct(IDataGridComposite &$datagridrow) { parent::__construct(); $this->_datagridrow =& $datagridrow; }
function __construct($module_name, $action_name = "") { parent::__construct($module_name, $action_name); }
function __construct($template) { parent::__construct($template); # set the header $this->header = 'Content-Type: application/text'; }