示例#1
0
 /**
  * Delete the row by it primary key in struct
  *
  * @param rad_struct $struct
  * @param string $tablename
  *
  * @return number of deleted items
  *
  * @access public
  */
 protected function delete_struct(rad_struct $struct, $tablename)
 {
     return rad_dbpdo::delete_struct($struct, $tablename);
 }
示例#2
0
 /**
  * Deletes the item by it PrimaryKey!
  * @return integer number of deleted rows (as usually 1)
  */
 public function remove()
 {
     return rad_dbpdo::delete_struct($this, $this->_getTableName());
 }