Esempio n. 1
0
 public function __construct(&$props, $dbArray = null)
 {
     parent::__construct($props, $dbArray);
     if (!empty($this->props['sizes'])) {
         $this->props['sizes'] = 'default|100x50,' . $this->props['sizes'];
     }
 }
Esempio n. 2
0
 public function __construct(&$props, $dbArray = null)
 {
     parent::__construct($props, $dbArray);
     if (isset($this->props['sizes'])) {
         $this->props['sizes'] = 'default:100x50' . (!empty($this->props['sizes']) ? ',' : '') . $this->props['sizes'];
     }
 }