public function __construct(&$props, $dbArray = null) { parent::__construct($props, $dbArray); if (!empty($this->props['sizes'])) { $this->props['sizes'] = 'default|100x50,' . $this->props['sizes']; } }
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']; } }