/** * Constructor * * @param array|Zend_Config $options Options * @param Centurion_Db_Table_Abstract $instance Instance attached to the form * @return void */ public function __construct($options = array(), Centurion_Db_Table_Row_Abstract $instance = null) { $this->_model = Centurion_Db::getSingleton('core/navigation'); $this->_exclude = array('mptt_parent_id'); $this->_elementLabels = array('label' => $this->_translate('Label'), 'module' => $this->_translate('Module name'), 'controller' => $this->_translate('Controller name'), 'action' => $this->_translate('Action name'), 'params' => $this->_translate('Params (json)'), 'route' => $this->_translate('Route name'), 'uri' => $this->_translate('URI'), 'is_visible' => $this->_translate('Visible?'), 'class' => $this->_translate('Stylesheet'), 'proxy' => $this->_translate('Proxy')); return parent::__construct($options, $instance); }
public function __construct($options = array()) { $this->_model = Centurion_Db::getSingleton('user/profile'); $this->_exclude = array('user_id', 'created_at', 'updated_at', 'id', 'avatar_id'); $this->_elementLabels = array('nickname' => 'Nickname', 'about' => 'About', 'website' => 'Website', 'facebook_pageid' => 'Facebook Page ID'); parent::__construct($options); }
public function __construct($options = array(), Centurion_Db_Table_Row_Abstract $instance = null) { $this->_model = Centurion_Db::getSingleton('cms/flatpage'); $this->_exclude = array('created_at', 'id', 'updated_at', 'mptt_lft', 'mptt_rgt', 'slug', 'mptt_level', 'mptt_tree_id', 'faltpage_type', 'cover_id', 'mptt_parent_id'); $this->_elementLabels = array('title' => $this->_translate('Title'), 'description' => $this->_translate('Description'), 'keywords' => $this->_translate('Keywords'), 'url' => $this->_translate('URL'), 'body' => $this->_translate('Content'), 'cover_id' => $this->_translate('Cover'), 'flatpage_template_id' => $this->_translate('Template'), 'mptt_parent_id' => $this->_translate('Parent'), 'published_at' => $this->_translate('Date to publish'), 'is_published' => $this->_translate('Is published'), 'order' => $this->_translate('Order'), 'route' => $this->_translate('Route')); parent::__construct($options, $instance); }
public function __construct($options = array(), Centurion_Db_Table_Row_Abstract $instance = null) { $this->_model = Centurion_Db::getSingleton('cms/flatpage_template'); $this->_exclude = array(); $this->_elementLabels = array('name' => $this->_translate('Name'), 'view_script' => $this->_translate('View script')); $this->setLegend($this->_translate('Edit flatpage template')); parent::__construct($options, $instance); }
public function __construct($options = array()) { $this->_model = Centurion_Db::getSingleton('user/profile'); $this->_elementLabels = array('nickname' => 'Nickname', 'function' => 'Function', 'about' => 'About', 'website' => 'Website', 'user_id' => 'User Parent'); $this->_exclude = array('created_at', 'updated_at', 'id', 'avatar_id'); $this->setLegend($this->_translate('Edit User')); parent::__construct($options); }
/** * Constructor * * @param array|Zend_Config $options Options * @param Centurion_Db_Table_Abstract $instance Instance attached to the form * @return void */ public function __construct($options = array(), Centurion_Db_Table_Row_Abstract $instance = null) { $this->_model = Centurion_Db::getSingleton('auth/user'); $this->_elementLabels = array('username' => $this->_translate('Username'), 'password' => $this->_translate('Password'), 'email' => $this->_translate('Email'), 'user_parent_id' => $this->_translate('User parent'), 'can_be_deleted' => $this->_translate('Can be deleted'), 'is_staff' => $this->_translate('Is staff'), 'is_active' => $this->_translate('Is active'), 'is_super_admin' => $this->_translate('Is super admin'), 'groups' => $this->_translate('Groups'), 'permissions' => $this->_translate('Permissions')); parent::__construct($options, $instance); }
public function __construct($options = array()) { $this->setModel(Centurion_Db::getSingleton('media/file'))->setEnctype(self::ENCTYPE_MULTIPART); parent::__construct($options); }
public function __construct($options = array(), Centurion_Db_Table_Row_Abstract $instance = null) { $this->_elementLabels = array('name' => $this->_translate('Name'), 'description' => $this->_translate('Description'), 'users' => $this->_translate('Users'), 'groups' => $this->_translate('Groups')); $this->_model = Centurion_Db::getSingleton('auth/permission'); parent::__construct($options, $instance); }