Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public static function delete($id)
 {
     return (bool) ApiConnector::callServer('message/' . $id, null, 'delete');
 }