Methods summary
public
|
|
public
|
#
set( mixed $photo_id, mixed $albums = array() )
|
public
|
#
_set( mixed $photo_id, mixed $albums = array() )
|
public
|
#
add( mixed $photo_id, mixed $albums = array(), mixed $check_stacks = true )
|
private
|
#
_resolvePhotoIds( integer|array $photo_id )
Photo ids resolution: get photo ids taking into account photos in stacks
(with saving sorting + childrend photos after parent)
Photo ids resolution: get photo ids taking into account photos in stacks
(with saving sorting + childrend photos after parent)
Parameters
- $photo_id
integer|array $photo_id
|
public
|
#
getAlbums( mixed $photo_id, mixed $fields = null, mixed $public_only = false )
|
public
|
#
movePhoto( integer|array $photo_id, integer $album_id, integer|null $before_id = null )
Move photo(s) inside album to place just before photo with id=$before_id
Move photo(s) inside album to place just before photo with id=$before_id
Parameters
- $photo_id
integer|array $photo_id
- $album_id
integer $album_id
- $before_id
integer|null $before_id If null than photo move to the end of album
|
public
|
|
public
|
|
public
|
#
getPhotos( integer|array|null $album_id = null, boolean $public_only = true )
Get photos from album(s) or photos that aren't inside any album
Get photos from album(s) or photos that aren't inside any album
Parameters
- $album_id
integer|array|null $album_id Get photos from this album(s). If $album is null that get photos that
aren't inside any album
- $public_only
boolean $public_only
|
public
boolean
|
#
deletePhotos( integer $album_id, array $photo_ids = array() )
Delete photos from album
Parameters
- $album_id
integer $album_id
- $photo_ids
array $photo_ids
Returns
boolean
|