/** * * @param type $options * @param type $backendApplicationId * @param array $appEnvs Tablica instancji na których mają być ustawione limity */ public function __construct($options = null, $backendApplicationId = 0, array $appEnvs = array(), $edit = false) { if (empty($appEnvs)) { $this->_appEnvs = Logic_Ws_Service::getServiceAppEnvs(); } $this->_edit = $edit; parent::__construct($options, $backendApplicationId); }
public function __construct($options = null) { $rolaModel = new Role(); $grupaModel = new Group(); $this->roles = $rolaModel->fetchAll(array('ghost = false', 'is_system = false'))->toArray(); $this->groups = $grupaModel->fetchAll(array('ghost = false', 'is_system = false'), 'group_name asc')->toArray(); parent::__construct($options); }
public function __construct($options = null, $backendApplicationId = 0) { $this->addElementPrefixPath('Logic_Validate_', 'Logic/Validate/', 'VALIDATE'); parent::__construct($options, $backendApplicationId); $class = get_called_class(); if ($class::TRACKING_NAME !== null) { $this->getDecorator('form')->setOption('trackingName', $class::TRACKING_NAME); } }
public function __construct($options = null) { $dict = new Base_Dictionary(); $profileModel = new Profile(); $profilesTmp = $profileModel->fetchAll(array('ghost = false')); $profiles = array(); foreach ($profilesTmp as $profile) { $profiles[$profile->getId()] = $profile->getUser()->login . ' - ' . $profile->getBranch()->web_name; } $this->fromProfile = $this->toProfile = $profiles; // $this->branches = $oddzialModel->fetchAll(array('ghost = false'))->toArray(); parent::__construct($options); }
public function __construct($type, $options = null) { $this->type = $type; if ($this->type === Logic_Ws_ServiceSet_ServiceSet::SHIPPING_TYPE_API) { unset($this->namespace['sset']); } $sms = new WsServiceSmsGroup(); $this->sms = $sms->fetchAll(array('ghost = false'), array('name ASC'))->toArray(); $mail = new WsServiceMailGroup(); $this->mail = $mail->fetchAll(array('ghost = false'), array('name ASC'))->toArray(); $sset = new WsServiceSet(); $this->sset = $sset->fetchAll(array('ghost = false', 'status = ' . Logic_Ws_ServiceSet_ServiceSet::STATE_ACTIVE), array('code_name ASC'))->toArray(); parent::__construct($options); }
/** * * Tworzy nową dynamiczną grupę. Klasa * * @param string $name Nazwa dynamicznej grupy pól. Nazwa musi być unikalna dla danego formularza. Nazwa musi mieć format ^[A-Za-z0-9_]+$. * @param Logic_Form_DynamicForm_Abstract $container Formularz nadrzędny (kontener), na którym umieszczona jest grupa dynamiczna. * @param array $elements Elementy formularza $container, które mają być opakowane w dynamiczną grupę. */ public function __construct($name, Logic_Form_DynamicForm_Abstract $container, array $elements, $options = null, $backendApplicationId = 0) { if (preg_match('/^[A-Za-z0-9_]+$/', $name) !== 1) { throw new Logic_Form_Exception("Nazwa dynamicznej grupy musi mieć format ^[A-Za-z0-9_]+\$. Podano nazwę: " . $name); } $this->setName($name); $this->_baseNames = array(); $this->_baseDecorators = array(); $this->_baseValidators = array(); foreach ($elements as $element) { /* @var $element Zend_Form_Element */ $container->removeElement($element->getName()); $this->_baseNames[] = $element->getName(); $this->_baseDecorators[$element->getName()] = $element->getDecorators(); $this->_baseValidators[$element->getName()] = $element->getValidators(); $element->setName($element->getName() . self::TEMPLATE_SUFFIX); $element->clearValidators(); $this->addElement($element); } $this->addDisplayGroup($elements, $name . self::TEMPLATE_SUFFIX, array('disableDefaultDecorators' => true)); $request = Zend_Controller_Front::getInstance()->getRequest(); if ($request->isPost()) { if (isset($_POST[$name][$this->getName() . self::COUNT_FIELD_NAME_SUFFIX])) { $count = intval($_POST[$name][$this->getName() . self::COUNT_FIELD_NAME_SUFFIX]); $this->_initialCount = $count >= 0 ? $count : 0; } } $this->addElement('hidden', $this->getName() . self::COUNT_FIELD_NAME_SUFFIX, array('decorators' => array('ViewHelper'), 'value' => '0')); $this->addElement('hidden', $this->getName() . self::DELETED_IDENTITIES_FIELD_NAME_SUFFIX, array('decorators' => array('ViewHelper'), 'value' => '')); parent::__construct($options, $backendApplicationId); $this->addPrefixPath('Logic_Form_Decorator_', 'Logic/Form/Decorator/', 'DECORATOR'); for ($i = 0; $i < $this->_count; $i++) { $dg = $this->getDisplayGroup($this->getName() . '_' . $i); $dg->setDecorators(array('FormElements', array('BelongsToAttribute', array('belongsTo' => $i)))); } $displayGroup = $this->getDisplayGroup($name . self::TEMPLATE_SUFFIX); $displayGroup->removeDecorator('Fieldset'); $displayGroup->addDecorators(array(array('decorator' => array('TemplateWrapper' => 'DynamicGroupTemplate'), 'options' => array('tag' => $this->_templateWrapperTag, 'class' => self::TEMPLATE_DIV_WRAPPER_CSS_CLASS . ' ' . $this->getName() . self::TEMPLATE_SUFFIX)))); foreach ($displayGroup->getElements() as $element) { $name = substr($element->getName(), 0, strlen($element->getName()) - strlen(self::TEMPLATE_SUFFIX)); $element->setDecorators($this->deepClone($this->_baseDecorators[$name])); } $this->setDecorators(array('FormElements', array('decorator' => array('FormWrapper' => 'HtmlTag'), 'options' => array('tag' => 'div', 'class' => self::DYNAMICGROUP_DIV_WRAPPER_CSS_CLASS . ' ' . self::DYNAMICGROUP_DIV_WRAPPER_CSS_CLASS . '_' . $this->getName(), 'formName' => $this->getName(), 'placeholder' => $this->getPlaceholderSelector())))); }
/** * * @param type $serviceType - typ usługi: 1 = SMS, 2 - MAIL. Typy dostępne z * poziomu stałych klasy Logic_Service. * @param type $options * @param type $backendApplicationId */ public function __construct($serviceType = Logic_Service::SERVICE_SMS, $options = null, $backendApplicationId = 0) { parent::__construct($options, $backendApplicationId); }
public function __construct($options = null) { $oddzialModel = new Branch(); $this->branches = $oddzialModel->fetchAll(array('ghost = false'))->toArray(); parent::__construct($options); }
public function __construct($options = null, $backendApplicationId = 0, $edit = false) { $this->_edit = $edit; parent::__construct($options, $backendApplicationId); }
public function __construct($queue = false) { $this->_queue = $queue; parent::__construct(); }
/** * * @param type $options * @param type $backendApplicationId */ public function __construct($options = null, $backendApplicationId = 0) { parent::__construct($options, $backendApplicationId); //$this->setDecorators(array(array('ViewScript', array('viewScript' => '_form/wssmsstandardsend.phtml',),),)); }
public function __construct($options = null) { $model = new Branch(); $this->braches = $model->fetchAll(); parent::__construct($options); }
public function __construct($disable = false) { $this->_disable = $disable; parent::__construct(); }
public function __construct($options = null) { $o = new Branch(); $this->oddzialy = $o->fetchAll(array('ghost = false and id != ' . $options['id_branch']))->toArray(); parent::__construct($options); }
public function __construct($edit = false) { $this->_edit = $edit; parent::__construct(); }
public function __construct($options = null) { $grupaModel = new Group(); $this->groups = $grupaModel->fetchAll(array('ghost = false', 'is_system = false'), array('id_group_parent ASC', 'group_name ASC', 'priority ASC'))->toArray(); parent::__construct($options); }
public function __construct($shipment = false) { $this->_isShipment = $shipment; parent::__construct(); }
public function __construct($cid) { $this->cid = $cid; parent::__construct($options, $backendApplicationId); }
public function __construct($options = null) { $rola = new Role(); $this->role = $rola->fetchAll(array('ghost = false ', 'is_system = false '))->toArray(); parent::__construct($options); }
/** * @param int $id * @param array $options */ public function __construct($id = 0, $options = null) { $this->_excludedId = $id; parent::__construct($options); }