[ class tree: classes ] [ index: classes ] [ all elements ]

Class: MediaObject

Source Location: /classes.php

Class MediaObject

Descendants
Child Class Description
Album Root class for images and albums
_Image handles 'picture' images

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ThemeObject

ThemeObject::$commentcount
ThemeObject::$comments
ThemeObject::$manage_rights
ThemeObject::$manage_some_rights
ThemeObject::$view_rights

Inherited From PersistentObject

PersistentObject::$cache_by
PersistentObject::$data
PersistentObject::$id
PersistentObject::$loaded
PersistentObject::$table
PersistentObject::$tempdata
PersistentObject::$transient
PersistentObject::$unique_set
PersistentObject::$updates
PersistentObject::$use_cache

Inherited From ThemeObject

ThemeObject::__construct()
Class instantiator
ThemeObject::addComment()
Adds comments to the album assumes data is coming straight from GET or POST
ThemeObject::checkAccess()
Checks if viewing of object is allowed
ThemeObject::checkForGuest()
returns false (deny) if gallery is "private"
ThemeObject::countHit()
counts visits to the object
ThemeObject::getCodeblock()
Returns the codeblocks as an serialized array
ThemeObject::getCommentCount()
Returns the count of comments in the album. Ignores comments in moderation
ThemeObject::getComments()
Returns an array of comments for this album
ThemeObject::getCommentsAllowed()
Retuns true if comments are allowed
ThemeObject::getCustomData()
returns the custom data field
ThemeObject::getDateTime()
Returns the unformatted date
ThemeObject::getHitcounter()
Returns the hitcount
ThemeObject::getParentID()
Returns the partent id
ThemeObject::getShow()
Returns true published
ThemeObject::getTags()
Returns the tag data
ThemeObject::getTitle()
Returns the title
ThemeObject::hasTag()
Checks if an object has a tag assigned.
ThemeObject::isMyItem()
Checks basic access rights of an object
ThemeObject::setCodeblock()
set the codeblocks as an serialized array
ThemeObject::setCommentsAllowed()
Sets the comments allowed flag
ThemeObject::setCustomData()
Sets the custom data field
ThemeObject::setDateTime()
Stores the date
ThemeObject::setParentID()
Sets the ParentID field
ThemeObject::setShow()
Stores the published value
ThemeObject::setTags()
Stores tag information
ThemeObject::setTitle()
Stores the title

Inherited From PersistentObject

PersistentObject::PersistentObject()
Prime instantiator for Zenphoto objects
PersistentObject::copy()
Copy this record to another unique set. Checks if the record exists there first, if so returns false. If successful returns true. No changes are made to this object and no other objects are created, just the database entry.
PersistentObject::get()
Get the value of a variable. If $current is false, return the value as of the last save of this object.
PersistentObject::getID()
Returns the id
PersistentObject::move()
Change one or more values of the unique set assigned to this record.
PersistentObject::remove()
Deletes object from the database
PersistentObject::save()
Save the updates made to this object since the last update. Returns true if successful, false if not.
PersistentObject::set()
Set a variable in this object. Does not persist to the database until save() is called. So, IMPORTANT: Call save() after set() to persist.
PersistentObject::setDefaults()
Sets default values for new objects using the set() method.

[ Top ]
Method Summary
MediaObject   __construct()   Class instantiator
string   getDesc()   Returns the description
string   getExpireDate()   Returns the expire date
string   getPassword()   Returns the password
string   getPasswordHint()   Returns the password hint
string   getPublishDate()   Returns the publish date
string   getSortOrder()   Returns the sort order
string   getUser()   Returns the guest user
void   setDesc()   Stores the description
void   setExpireDate()   sets the expire date
void   setPassword()   Sets the encrypted password
void   setPasswordHint()   Sets the password hint
void   setPublishDate()   sets the publish date
void   setSortOrder()   Stores the sort order
void   setUser()   Sets the guest user

[ Top ]
Methods
Constructor __construct  [line 693]

  MediaObject __construct( )

Class instantiator



Redefinition of:
ThemeObject::__construct()
Class instantiator

Redefined in descendants as:

[ Top ]
getDesc  [line 702]

  string getDesc( )

Returns the description



[ Top ]
getExpireDate  [line 789]

  string getExpireDate( )

Returns the expire date



[ Top ]
getPassword  [line 746]

  string getPassword( )

Returns the password



[ Top ]
getPasswordHint  [line 773]

  string getPasswordHint( )

Returns the password hint



[ Top ]
getPublishDate  [line 816]

  string getPublishDate( )

Returns the publish date



[ Top ]
getSortOrder  [line 718]

  string getSortOrder( )

Returns the sort order



[ Top ]
getUser  [line 732]

  string getUser( )

Returns the guest user



[ Top ]
setDesc  [line 711]

  void setDesc( string $desc  )

Stores the description

Parameters:
string   $desc:  description text


[ Top ]
setExpireDate  [line 801]

  void setExpireDate( $ed  )

sets the expire date

Parameters:
   $ed: 


[ Top ]
setPassword  [line 759]

  void setPassword( string $pwd  )

Sets the encrypted password

Parameters:
string   $pwd:  the cleartext password


[ Top ]
setPasswordHint  [line 782]

  void setPasswordHint( string $hint  )

Sets the password hint

Parameters:
string   $hint:  the hint text


[ Top ]
setPublishDate  [line 829]

  void setPublishDate( $ed  )

sets the publish date

Parameters:
   $ed: 


[ Top ]
setSortOrder  [line 725]

  void setSortOrder( string $sortorder  )

Stores the sort order

Parameters:
string   $sortorder:  image sort order


[ Top ]
setUser  [line 739]

  void setUser( string $user  )

Sets the guest user

Parameters:
string   $user: 


[ Top ]

Documentation generated on Tue, 20 Dec 2011 16:07:02 +0100 by phpDocumentor 1.4.3