Exemple #1
0
 public static function deleteObject(Entity $object)
 {
     if (!self::callServer($object->getRelativeUrl() . '/' . $object->getId(), null, 'delete')) {
         return false;
     }
     return true;
 }
Exemple #2
0
 public function send()
 {
     return parent::callAction($this, 'send');
 }
Exemple #3
0
 public static function callAction(Entity $parent, $actionName)
 {
     $url = $parent->getRelativeUrl() . '/' . $parent->getId() . '/' . $actionName;
     $response = ApiConnector::callServer($url, null, 'patch');
     if (!$response) {
         throw new \Exception('Penneo: Internal problem encountered calling action: ' . $actionName);
     }
     return true;
 }
Exemple #4
0
 public function getEventLog()
 {
     return parent::getLinkedEntities($this, 'Penneo\\SDK\\LogEntry');
 }