public function __construct(EntitySet $set, $indexValue)
 {
     parent::__construct($set->getApi(), $set->getPath() . '/' . rawurlencode($indexValue), false);
     $this->_set = $set;
     $this->init();
     $this->set(static::getIndexField(), $indexValue);
 }
 /**
  * Get array with read-only properties
  * @return array
  */
 public function GetReadOnlyProperties()
 {
     $properties = parent::GetReadOnlyProperties();
     array_push($properties, 'RefusedReasonType');
     array_push($properties, 'RefusedReasonMessage');
     array_push($properties, 'UserId');
     return $properties;
 }
 public function beforeSave($insert)
 {
     if (parent::beforeSave($insert)) {
         $this->dokument_ob_obrazovanii_seriya = $this->dokument_ob_obrazovanii_seriya ? mb_substr(trim($this->dokument_ob_obrazovanii_seriya), 0, 40) : null;
         $this->dokument_ob_obrazovanii_nomer = $this->dokument_ob_obrazovanii_nomer ? mb_substr(trim($this->dokument_ob_obrazovanii_nomer), 0, 40) : null;
         return true;
     } else {
         return false;
     }
 }
 public function update($params)
 {
     /*{{{*/
     $this->loadExtension();
     parent::update($params);
     $lazyProperties = $this->getDao()->getLazyProperties();
     $keys = array_keys($params);
     foreach ($keys as $key) {
         foreach ($lazyProperties as $property) {
             if ($property == strtolower($key)) {
                 $this->ext[$property] = $params[$key];
             }
         }
     }
 }
 public function __construct()
 {
     $this->table = "usuario";
     parent::__construct($this->table);
 }
 /**
  * Ingrediente constructor.
  */
 public function __construct()
 {
     $this->table = "ingredientes";
     parent::__construct($this->table);
 }
Exemple #7
0
 public function __construct()
 {
     $this->table = "pedidos";
     parent::__construct($this->table);
 }
 public function __construct($name)
 {
     parent::__construct();
     $this->_name = $name;
 }
 public function __construct(array $options = null)
 {
     parent::__construct($options);
     $this->thumbPath = $this->path . 'thumbnails/';
     list($this->width, $this->height) = getimagesize($this->path . $this->file);
 }