Methods summary
public
|
#
delete( integer $id )
Delete by id with taking into account case of stack.
Delete by id with taking into account case of stack.
If deleting photo is single photo then just delete photo. If deleting photo
is parent of stack then first of all make unstack If deleting photo is children
photo in stack then after deleting photo decrease stack
Parameters
|
public
|
|
public
|
|
public
|
|
public
|
|
private
|
#
_makeStack( mixed $parent_id, mixed $photo_ids, mixed $op = 'make' )
|
public
|
|
public
|
#
update( integer|array $id, array $photo )
Update by id with taking into account case of stack
Update by id with taking into account case of stack
Parameters
- $id
integer|array $id
- $photo
array $photo
|
public
|
|
public
|
|
public
|
#
getStack( mixed $id, mixed $options = array() )
|
public
integer|boolean
|
#
getStackParent( array|integer $photo )
Get parent of stack if photo with $id constist in stack
Get parent of stack if photo with $id constist in stack
Parameters
- $photo
array|integer $photo photo or id of photo
Returns
integer|boolean
|
public
integer|boolean
|
#
getStackParentId( array|integer $photo )
Get parent_id of stack if photo is in stack
Get parent_id of stack if photo is in stack
Parameters
- $photo
array|integer $photo photo or id of photo
Returns
integer|boolean
|
public
|
|
public
integer
|
#
countAll( mixed $datetime = null, mixed $stack = false, mixed $public_only = false )
Returns the number of records stored in the table.
Returns the number of records stored in the table.
Returns
integer
Overrides
|
public
|
#
countRated( mixed $datetime = null, mixed $stack = false, mixed $public_only = false )
|
public
|
|
private
|
|
private
|
|
public
array
|
#
getPhotos( integer|array $photo_ids, boolean $stack_childs = true, boolean $save_sorting = true )
Get photos by id taking into account photos in stack (if $stack_childs is
true) and soring of input $photo_ids param (if $save_soring is true)
Get photos by id taking into account photos in stack (if $stack_childs is
true) and soring of input $photo_ids param (if $save_soring is true)
Parameters
- $photo_ids
integer|array $photo_ids
- $stack_childs
boolean $stack_childs
- $save_sorting
boolean $save_sorting
Returns
array indexed by id
|
public
|
|
public static
|
|
public static
|
|
public static
|
|
public
|
|
private
|
|
private
|
|
private
|
|
public
|
#
rotate( mixed $id, mixed $clockwise = true )
|