public function photoExistsInEvent($eventId, $photoFileName)
    {
        if (is_null($eventId) || $eventId == '') {
            throw new Exception('The eventId is required to check if a photo exists.');
        }

        if (is_null($photoFileName) || $photoFileName == '') {
            throw new Exception('The photoFileName is required to check if a photo exists.');
        }

        $params = array(
            'method' => 'sp.event.photo_exists',
            'event_id' => $eventId,
            'photo_name' => $photoFileName
        );

        return $this->_makeApiRequest($params);
    }
public function photoExistsInEvent($eventId, $photoFileName)
    {
        if (is_null($eventId) || $eventId == '') {
            throw new Exception('The eventId is required to check if a photo exists.');
        }

        if (is_null($photoFileName) || $photoFileName == '') {
            throw new Exception('The photoFileName is required to check if a photo exists.');
        }

        $params = array(
            'method' => 'sp.event.photo_exists',
            'event_id' => $eventId,
            'photo_name' => $photoFileName
        );

        return $this->_makeApiRequest($params);
    }
public function photoExistsInEvent ( $ eventId , $ photoFileName ) { if ( is_null ( $ eventId ) || $ eventId == '' ) { throw new Exception ( 'The eventId is required to check if a photo exists.' ) ; } if ( is_null ( $ photoFileName ) || $ photoFileName == '' ) { throw new Exception ( 'The photoFileName is required to check if a photo exists.' ) ; } $ params = array ( 'method' => 'sp.event.photo_exists' , 'event_id' => $ eventId , 'photo_name' => $ photoFileName ) ; return $ this -> _makeApiRequest ( $ params ) ; }
Method to check to see if a photo already exists within an event

@param integer $eventId
@param string $photoFileName
@return array
Method to check to see if a photo already exists within an event