FUEL CMS User Guide : Version 1.5.2


Fuel Tags Class

This class extends the Fuel_module class.

Properties Reference

Property Default Value Description
protected
module N/A

Function Reference [+]

$this->fuel->tags->find_by_tag('$tag', ['$category'=NULL])

Returns a tag model record object.

Returns

object

Parameters

(string) $tag the slug value of the tag
(string) $category the slug of the category the tag belongs to (optional)

$this->fuel->tags->find_by_context('$context', ['$one'=FALSE])

Returns multiple/one tag models based on a context value.

Returns

object

Parameters

(string) $context the context value in which to search for a tag
(boolean) $one determines whether to return just one or not (optional)

$this->fuel->tags->find_by_category('$category', ['$order'=NULL], ['$limit'=NULL], ['$offset'=NULL])

Returns a related category model with the active record query already applied.

Returns

array

Parameters

(string) $category the name of the category

$this->fuel->tags->options_list(['$key'='slug'], ['$val'='name'])

Returns an associative array with the keys being the tags slug value and the values (label), being the name of the tag.

Returns

array

Parameters

(string) $key key for option
(string) $val value for option