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 photosAlbumPhotosModel

waModel
Extended by photosAlbumPhotosModel
Package: wa-apps\photos
Located at wa-apps/photos/lib/models/photosAlbumPhotos.model.php
Methods summary
public
# getByPhoto( mixed $photo_id )
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
# lastUploadedCounters( mixed $datetime, mixed $album_id = null )
public
# getCountByAlbum( )
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

Delete photos from album

Parameters

$album_id
integer
$album_id
$photo_ids
array
$photo_ids

Returns

boolean
Methods inherited from waModel
__construct(), addCacheCleaner(), autocommit(), castValue(), commit(), countAll(), 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()
Properties summary
protected string $table 'photos_album_photos'
#

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