public function __construct($spec, $options = null) { parent::__construct($spec, $options); $this->associatedElement = $options['associatedElement']; $this->pathTmp = $options['pathTmp']; $this->contentID = $options['contentID']; }
public function __construct($spec, $aOptions = array()) { if (isset($aOptions['ajax'])) { $this->_ajax = $aOptions['ajax']; unset($aOptions['ajax']); } parent::__construct($spec, $aOptions); }
public function __construct($spec, $options = null) { parent::__construct($spec, $options); $this->_menu = empty($options['menu']) ? '' : $options['menu']; $this->_associatedElement = empty($options['associatedElement']) ? '' : $options['associatedElement']; $this->_onClick = "javascript:assignPage(\"{$this->getId()}\",\"%PAGEID%\",\"{$this->_associatedElement}\",\"%PAGEINDEX%\");"; if (!empty($options['onclick'])) { $this->_onClick .= $options['onclick']; } }
public function __construct($spec, $params = array(), $options = null) { parent::__construct($spec, $options); $this->_lang = empty($options['lang']) ? 1 : $options['lang']; if ($options['mode'] == 'add') { $this->_mode = 'add'; $config = Zend_registry::get('config'); $this->_lang = $config->defaultEditLanguage; } $this->_params = $params; }
/** * * @param string $spec Id of the element for html tag. * @param array $options Options to create the element.<br /> * The following ones are mandatory:<br /> * <p>- associatedElement: Element containing the * file path. It's the form element to be saved into db.</p> * <p>- displayElement: The field name to display the file name.</p> * <p>- pathTmp: Path to initialize the browser.</p> * <p>- setInit: Set to true for the first element. * This is not usefull if there is more than one element.</p> * <p>- contentID: OPTIONAL</p> */ public function __construct($spec, $options = null) { parent::__construct($spec, $options); if (isset($options['associatedElement'])) { $this->associatedElement = $options['associatedElement'] . "-"; } else { $this->associatedElement = ""; } $this->displayElement = $options['displayElement']; $this->pathTmp = $options['pathTmp']; $this->contentID = $options['contentID']; $this->setInit = $options['setInit']; // var_dump($options); }
public function __construct($spec = null, $options = null) { parent::__construct($spec, $options); $this->removeDecorator('label')->removeDecorator('HtmlTag'); }
public function __construct($spec, $options = null) { parent::__construct($spec, $options); $this->associatedElement = $options['associatedElement']; $this->galleryID = $options['galleryID']; }