Example #1
0
 /**
  */
 public function configure()
 {
     // RUN PARENT FIRST!
     parent::configure();
     // item width
     if ($this->config()->contains('item_width')) {
         $this->item_width = (string) $this->config('item_width');
     }
     // item height
     if ($this->config()->contains('item_height')) {
         $this->item_height = (string) $this->config('item_height');
     }
     // item margin
     if ($this->config()->contains('item_margin')) {
         $this->item_margin = (string) $this->config('item_margin');
     }
 }
Example #2
0
 /**
  */
 public function configure()
 {
     // RUN PARENT FIRST!
     parent::configure();
     // animate
     if ($this->config()->contains('animate')) {
         $this->animate = $this->config('animate');
     }
     // max
     if ($this->config()->contains('max') && is_numeric($this->config('max'))) {
         $this->max = $this->config('max');
     }
     // min
     if ($this->config()->contains('min') && is_numeric($this->config('min'))) {
         $this->min = $this->config('min');
     }
     // orientation
     if ($this->config()->contains('orientation')) {
         $this->orientation = (string) $this->config('orientation');
     }
     // step
     if ($this->config()->contains('step') && is_numeric($this->config('step'))) {
         $this->step = $this->config('step');
     }
     // range
     if ($this->config()->contains('range') && is_numeric($this->config('range'))) {
         $this->range = $this->config('range');
     }
     // value label
     if ($this->config()->contains('label')) {
         $this->label = (string) $this->config('label');
     }
     // prefix
     if ($this->config()->contains('prefix')) {
         $this->prefix = (string) $this->config('prefix');
     }
     // suffix
     if ($this->config()->contains('suffix')) {
         $this->suffix = (string) $this->config('suffix');
     }
     // delimiter (more than one handle)
     if ($this->config()->contains('delimiter')) {
         $this->delimiter = (string) $this->config('delimiter');
     }
 }
Example #3
0
 /**
  * Return sibling options as an array
  *
  * @param ICE_Option $option
  * @return array
  */
 public function get_siblings(ICE_Option $option)
 {
     // options to return
     $options = array();
     // render options that require this one
     foreach ($this->get_all() as $sibling_option) {
         if ($option->property('name') == $sibling_option->property('parent')) {
             $options[] = $sibling_option;
         }
     }
     return $options;
 }