Пример #1
0
 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.");
     }
 }
Пример #2
0
 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']);
     }
 }
Пример #3
0
 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);
 }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }
Пример #6
0
 /**
  * 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());
     }
 }
Пример #7
0
 /**
  * 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();
 }
Пример #9
0
 /**
  * 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);
 }
Пример #12
0
 /**
  * Creates a new {@link ErrorView}.
  * @param $smarty Smarty The smarty template.
  */
 public function __construct($smarty)
 {
     parent::__construct('error', 'Error', $smarty);
 }
Пример #13
0
Файл: CLI.php Проект: atk4/atk4
 /**
  * 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;
 }
Пример #15
0
 /**
  * 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());
 }
Пример #16
0
 /**
  * Creates a new {@link RegisterView}.
  * @param $smarty Smarty The smarty template.
  */
 public function __construct($smarty)
 {
     parent::__construct('register', 'Register', $smarty);
 }
Пример #17
0
 /**
  * Creates a new {@link LogoutView}.
  * @param $smarty Smarty The smarty template.
  */
 public function __construct($smarty)
 {
     parent::__construct('logout', 'Logged Out', $smarty);
 }
Пример #18
0
 /**
  * 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());
 }
Пример #19
0
 function __construct($template)
 {
     parent::__construct($template);
 }
Пример #20
0
 public function __construct(IDataGridComposite &$datagrid)
 {
     parent::__construct();
     $this->setModel($datagrid);
 }
Пример #21
0
 /**
  * Creates a new {@link LoggedInView}.
  * @param $smarty Smarty The smarty template.
  */
 public function __construct($smarty)
 {
     parent::__construct('loggedin', 'Logged In', $smarty);
 }
Пример #22
0
 public function __construct(IDataGridComposite &$datagridrow)
 {
     parent::__construct();
     $this->_datagridrow =& $datagridrow;
 }
Пример #23
0
 function __construct($module_name, $action_name = "")
 {
     parent::__construct($module_name, $action_name);
 }
Пример #24
0
 function __construct($template)
 {
     parent::__construct($template);
     # set the header
     $this->header = 'Content-Type: application/text';
 }