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 photosPhotoTagsModel

waModel
Extended by photosPhotoTagsModel
Package: wa-apps\photos
Located at wa-apps/photos/lib/models/photosPhotoTags.model.php
Methods summary
public
# assign( array|integer $photo_ids, array|integer $tag_ids = array() )

Assign tags to photos. Tags just assign to photos (without removing if exist for concrete photo)

Parameters

$photo_ids
array|integer
$photo_ids
$tag_ids
array|integer
$tag_ids

Throws

Exception
public
# delete( mixed $photo_ids, mixed $tag_ids )
public
# set( integer $photo_id, array $tags = array() )

Set tags to this photo. If tag doesn't exist it will be created. If photo hasn't tag anymore it will be removed for this photo. Take into account stack of photos

Set tags to this photo. If tag doesn't exist it will be created. If photo hasn't tag anymore it will be removed for this photo. Take into account stack of photos

Parameters

$photo_id
integer
$photo_id
$tags
array
$tags NAMES of tags

Throws

Exception
private
# _set( mixed $photo_id, mixed $tag_ids = array() )
public
# getTags( mixed $photo_id )
public
# getTagIds( mixed $photo_id )
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_photo_tags'
#

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