Пример #1
0
 /**
  * Persist an object to a table
  * @param type $tablename The table to store data to
  * @param type $entity The object to persist
  * @param type $idfieldname The primary key id of the table; could be null and retrieved automatically
  * @return boolean true, if successful
  */
 public static function persistObject($tablename, $entity) {
     Recycle::restoreFromRecycle($tablename, $entity, null);
 }