Ejemplo n.º 1
0
 public function __initialize(array $params)
 {
     $params['filterable'] = false;
     $params['sortable'] = false;
     $params['size'] = 50;
     parent::__initialize($params);
 }
Ejemplo n.º 2
0
 public function __initialize(array $params)
 {
     parent::__initialize($params);
     $this->setFormat($this->getParam('format'));
     $this->setOperators($this->getParam('operators', array(self::OPERATOR_EQ, self::OPERATOR_NEQ, self::OPERATOR_LT, self::OPERATOR_LTE, self::OPERATOR_GT, self::OPERATOR_GTE, self::OPERATOR_BTW, self::OPERATOR_BTWE, self::OPERATOR_ISNULL, self::OPERATOR_ISNOTNULL)));
     $this->setDefaultOperator($this->getParam('defaultOperator', self::OPERATOR_EQ));
 }
Ejemplo n.º 3
0
 public function __initialize(array $params)
 {
     parent::__initialize($params);
     $this->setSeparator($this->getParam('separator', "<br />"));
     $this->setOperators($this->getParam('operators', array(self::OPERATOR_LIKE, self::OPERATOR_NLIKE, self::OPERATOR_EQ, self::OPERATOR_NEQ, self::OPERATOR_ISNULL, self::OPERATOR_ISNOTNULL)));
     $this->setDefaultOperator($this->getParam('defaultOperator', self::OPERATOR_LIKE));
 }
Ejemplo n.º 4
0
 public function __initialize(array $params)
 {
     parent::__initialize($params);
     $this->setIconSize($this->getParam('iconSize'));
     $this->setFilterable($this->getParam('filterable', false));
     $this->setSortable($this->getParam('sortable', false));
 }
Ejemplo n.º 5
0
 public function __initialize(array $params)
 {
     parent::__initialize($params);
     $this->setAlign($this->getParam('align', 'right'));
     $this->setStyle($this->getParam('style', 'decimal'));
     $this->setLocale($this->getParam('locale', \Locale::getDefault()));
     $this->setPrecision($this->getParam('precision', null));
     $this->setGrouping($this->getParam('grouping', false));
     $this->setRoundingMode($this->getParam('roundingMode', \NumberFormatter::ROUND_HALFUP));
     $this->setRuleSet($this->getParam('ruleSet'));
     $this->setCurrencyCode($this->getParam('currencyCode'));
     $this->setFractional($this->getParam('fractional', false));
     if ($this->style === \NumberFormatter::DURATION) {
         $this->setLocale('en');
         $this->setRuleSet($this->getParam('ruleSet', '%in-numerals'));
         // or '%with-words'
     }
     $this->setOperators($this->getParam('operators', array(self::OPERATOR_EQ, self::OPERATOR_NEQ, self::OPERATOR_LT, self::OPERATOR_LTE, self::OPERATOR_GT, self::OPERATOR_GTE, self::OPERATOR_BTW, self::OPERATOR_BTWE, self::OPERATOR_ISNULL, self::OPERATOR_ISNOTNULL)));
     $this->setDefaultOperator($this->getParam('defaultOperator', self::OPERATOR_EQ));
 }
Ejemplo n.º 6
0
 public function __initialize(array $params)
 {
     parent::__initialize($params);
     $this->setClass($this->getParam('class'));
 }