Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • photosAlbumCountModel
  • photosAlbumModel
  • photosAlbumParamsModel
  • photosAlbumPhotosModel
  • photosAlbumRightsModel
  • photosCollection
  • photosConfig
  • photosContactsDeleteHandler
  • photosContactsLinksHandler
  • photosDefaultFrontendLayout
  • photosDefaultLayout
  • photosDialogConfirmViewAction
  • photosExif
  • photosForgotpasswordAction
  • photosFrontController
  • photosFrontendAlbum
  • photosFrontendCollectionViewAction
  • photosFrontendPhoto
  • photosFrontendViewAction
  • photosImage
  • photosLoginAction
  • photosMobileLayout
  • photosOAuthController
  • photosPageModel
  • photosPageParamsModel
  • photosPhoto
  • photosPhotoExifModel
  • photosPhotoHtmlRenderer
  • photosPhotoModel
  • photosPhotoRenderHelper
  • photosPhotoRightsModel
  • photosPhotoTagsModel
  • photosPlugin
  • photosRightConfig
  • photosSignupAction
  • photosSitemapConfig
  • photosTagModel
  • photosViewHelper
  • photosViewTree
  • photosViewTreeElement
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class photosPhotoModel

waModel
Extended by photosPhotoModel
Package: wa-apps\photos
Located at wa-apps/photos/lib/models/photosPhoto.model.php
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

$id
integer
$id
public
# getByParent( mixed $id )
public
# getIdsByParent( mixed $parent_id )
public
# makeStack( mixed $parent_id, mixed $photo_ids )
public
# appendToStack( mixed $parent_id, mixed $photo_ids )
private
# _makeStack( mixed $parent_id, mixed $photo_ids, mixed $op = 'make' )
public
# unstack( mixed $id )
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
# moveStackSort( mixed $id, mixed $before_id )
public
# getStackIds( mixed $photo )
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
# getLastUploadedPhotoIds( mixed $datetime )
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

waModel::countAll()
public
# countRated( mixed $datetime = null, mixed $stack = false, mixed $public_only = false )
public
# updateAccess( mixed $photo_id, mixed $status, mixed $groups )
private
# upAccess( mixed $photo_id, mixed $data )
private
# upRights( mixed $photo_id, mixed $groups )
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
# filterByField( mixed $photo_ids, mixed $field, mixed $value )
public static
# getPrivateUrl( mixed $photo )
public static
# getPrivateHash( mixed $photo )
public static
# parsePrivateUrl( mixed $url )
public
# add( waRequestFile $file, mixed $data )
private
# correctOrientation( mixed $orientation, waImage $image )
private
# urlExists( mixed $url, mixed $photo_id )
private
# generateUrl( mixed $name, mixed $photo_id )
public
# rotate( mixed $id, mixed $clockwise = true )
Methods inherited from waModel
__construct(), addCacheCleaner(), autocommit(), castValue(), commit(), countByField(), createSchema(), database(), deleteByField(), deleteById(), describe(), escape(), escapeField(), exec(), fieldExists(), getAll(), getByField(), getById(), getEmptyRow(), getFieldValue(), getMetadata(), getQueryConstructor(), getTableId(), getTableName(), getWhereByField(), insert(), isAutoIncrement(), multiInsert(), multipleInsert(), order(), ping(), prepare(), query(), replace(), rollback(), select(), setCache(), updateByField(), updateById(), where()
Constants summary
string SOURCE_BACKEND 'backend'
#
string SOURCE_API 'api'
#
Properties summary
protected string $table 'photos_photo'
#

Name of the table

Name of the table

Properties inherited from waModel
$adapter, $fields, $id, $type, $writable
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0