public static function deleteObject(Entity $object) { if (!self::callServer($object->getRelativeUrl() . '/' . $object->getId(), null, 'delete')) { return false; } return true; }
public function send() { return parent::callAction($this, 'send'); }
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; }
public function getEventLog() { return parent::getLinkedEntities($this, 'Penneo\\SDK\\LogEntry'); }