Class Tag

Description

Located in /system/classes/tag.php (line 8)

QueryRecord
   |
   --Tag
Method Summary
static TRUE attach_to_post (tag_id $tag_id, post_id $post_id)
static Tag create (array $paramarray)
static array default_fields ()
static Tag get ([array $paramarray = array()])
Tag __construct ([array $paramarray = array()])
void delete ()
void insert ()
void update ()
mixed __call (string $name, array $args)
Variables
Methods
static method attach_to_post (line 84)

Attaches (relates) a tag to a post

  • return: or FALSE depending if relation was created.
  • access: public
static TRUE attach_to_post (tag_id $tag_id, post_id $post_id)
  • tag_id $tag_id: The ID of the tag
  • post_id $post_id: The ID of the post
static method create (line 70)

Create a tag and save it.

  • return: The new Tag object
static Tag create (array $paramarray)
  • array $paramarray: An associative array of tag fields
static method default_fields (line 15)

Return the defined database columns for a Tag.

  • return: Array of columns in the tags table
  • access: public
static array default_fields ()
static method get (line 51)

Return a single requested tag.

  1.  $tagTag::getarray'tag_slug' => 'wooga' ) );

  • return: The first tag that matched the given criteria
static Tag get ([array $paramarray = array()])
  • array $paramarray: An associated array of parameters, or a querystring
Constructor __construct (line 28)

Constructor for the Tag class.

  • access: public
Tag __construct ([array $paramarray = array()])
  • array $paramarray: an associative array of initial Tag field values.

Redefinition of:
QueryRecord::__construct()
constructor __construct Constructor for the QueryRecord class.
delete (line 197)

function delete

Deletes an existing tag and all relations to it (e.g. a post2tag relationship)

  • access: public
void delete ()

Redefinition of:
QueryRecord::delete()
This is the public interface that deletes a record
insert (line 131)

function insert

Saves a new tag into the tags table

  • access: public
void insert ()

Redefinition of:
QueryRecord::insert()
This is the public interface that inserts a record
update (line 161)

function update

Updates an existing tag in the tags table

  • access: public
void update ()

Redefinition of:
QueryRecord::update()
This is the public interface that updates a record
__call (line 225)

Handle calls to this Tag object that are implemented by plugins

  • return: The value returned from any plugin filters, null if no value is returned
  • access: public
mixed __call (string $name, array $args)
  • string $name: The name of the function called
  • array $args: Arguments passed to the function call

Inherited Methods

Inherited From QueryRecord

QueryRecord::__construct()
QueryRecord::delete()
QueryRecord::deleteRecord()
QueryRecord::exclude_fields()
QueryRecord::get_url_args()
QueryRecord::insert()
QueryRecord::insertRecord()
QueryRecord::list_excluded_fields()
QueryRecord::to_array()
QueryRecord::update()
QueryRecord::updateRecord()
QueryRecord::__get()
QueryRecord::__isset()
QueryRecord::__set()

Documentation generated on Thu, 30 Oct 2008 20:31:28 +0100 by phpDocumentor 1.3.2