示例#1
0
 public static function delete(Entity $object)
 {
     if (!ApiConnector::deleteObject($object)) {
         throw new \Exception('Penneo: Could not delete the ' . get_class($object));
     }
     unset($object->id);
 }
示例#2
0
 public static function delete($id)
 {
     return (bool) ApiConnector::callServer('message/' . $id, null, 'delete');
 }