src/Entity/XiboPermissions.php
public function getPermissions($entity, $objectId)
    {
        $this->getLogger()->info('Getting Permissions arrays for Entity ' . $entity . ' with ID ' . $objectId);
        $response = $this->doGet('/user/permissions/' . $entity . '/' . $objectId);
        $entries = [];

        foreach ($response as $item) {
            $entries[] = clone $this->hydrate($item);
        }

        return $entries;
    }
public function getPermissions($entity, $objectId)
    {
        $this->getLogger()->info('Getting Permissions arrays for Entity ' . $entity . ' with ID ' . $objectId);
        $response = $this->doGet('/user/permissions/' . $entity . '/' . $objectId);
        $entries = [];

        foreach ($response as $item) {
            $entries[] = clone $this->hydrate($item);
        }

        return $entries;
    }
public function getPermissions ( $ entity , $ objectId ) { $ this -> getLogger ( ) -> info ( 'Getting Permissions arrays for Entity ' . $ entity . ' with ID ' . $ objectId ) ; $ response = $ this -> doGet ( '/user/permissions/' . $ entity . '/' . $ objectId ) ; $ entries = [ ] ; foreach ( $ response as $ item ) { $ entries [ ] = clone $ this -> hydrate ( $ item ) ; } return $ entries ; }
Get permissions to specific entity.

@param string $entity The Name of the entity Campaign, DataSet, DayPart, DisplayGroup, Media, Notification, Page, Playlist, Region, Widget
@param int $objectId the ID of the object to return permissions for
@return XiboPermissions|array
Get permissions to specific entity .