Example #1
0
File: Text.php Project: ajb/rfpez
 /**
  * Turn this item into an array
  *
  * @return array
  */
 public function toArray()
 {
     $arr = parent::toArray();
     $arr['limit'] = $this->limit;
     $arr['height'] = $this->height;
     return $arr;
 }
Example #2
0
 /**
  * Turn this item into an array
  *
  * @return array
  */
 public function toArray()
 {
     $arr = parent::toArray();
     $arr['symbol'] = $this->symbol;
     $arr['decimals'] = $this->decimals;
     $arr['decimalSeparator'] = $this->decimalSeparator;
     $arr['thousandsSeparator'] = $this->thousandsSeparator;
     return $arr;
 }
Example #3
0
 /**
  * @return array
  */
 public function toArray()
 {
     $array = parent::toArray();
     if ($this->getCurrencyCode() !== null) {
         $array['currencyCode'] = $this->getCurrencyCode();
     }
     if ($this->getNumberStyle() !== null) {
         $array['numberStyle'] = $this->getNumberStyle();
     }
     return $array;
 }
Example #4
0
 /**
  * @return array
  */
 public function toArray()
 {
     $array = parent::toArray();
     if (strlen($this->getDateStyle())) {
         $array['dateStyle'] = $this->getDateStyle();
     }
     if (is_bool($this->getIgnoresTimeZone())) {
         $array['ignoresTimeZone'] = $this->getIgnoresTimeZone();
     }
     if (is_bool($this->getIsRelative())) {
         $array['isRelative'] = $this->getIsRelative();
     }
     if (strlen($this->getTimeStyle())) {
         $array['timeStyle'] = $this->getTimeStyle();
     }
     return $array;
 }
Example #5
0
 /**
  * Turn this item into an array
  *
  * @return array
  */
 public function toArray()
 {
     $arr = parent::toArray();
     $arr['options'] = $this->options;
     return $arr;
 }