コード例 #1
0
ファイル: message.php プロジェクト: nooku/nooku-framework
 /**
  * Unset an item in the array
  *
  * Required by interface ArrayAccess
  *
  * @param   int     $offset
  * @return  void
  */
 public function offsetUnset($offset)
 {
     ObjectArray::offsetUnset($offset);
 }
コード例 #2
0
ファイル: abstract.php プロジェクト: nooku/nooku-framework
 /**
  * Remove a property
  *
  * This function will reset required properties to their default value, not required properties will be unset.
  *
  * @param   string  $name The property name.
  * @return  DatabaseRowAbstract
  */
 public function removeProperty($name)
 {
     if ($this->isConnected()) {
         $column = $this->getTable()->getColumn($name);
         if (isset($column) && $column->required) {
             $this->setProperty($this->_data[$name], $column->default);
         } else {
             parent::offsetUnset($name);
             unset($this->__modified_properties[$name]);
         }
     }
     return $this;
 }
コード例 #3
0
ファイル: abstract.php プロジェクト: nooku/nooku-framework
 /**
  * Remove a property
  *
  * @param   string  $name The property name.
  * @return  ModelEntityAbstract
  */
 public function removeProperty($name)
 {
     parent::offsetUnset($name);
     unset($this->__modified_properties[$name]);
     return $this;
 }
コード例 #4
0
ファイル: abstract.php プロジェクト: janssit/nickys.janss.be
 /**
  * Remove a row field
  *
  * @param   string  $column The column name.
  * @return  void
  */
 public function offsetUnset($column)
 {
     parent::offsetUnset($column);
     unset($this->_modified[$column]);
 }