Tag

Extends\CActiveRecord

The followings are the available columns in table 'tbl_tag':

package

Default

Methods

addTags

addTags( $tags)

Arguments

$tags

array2string

array2string( $tags)
static

Arguments

$tags

attributeLabels

attributeLabels(): array

Response

array

customized attribute labels (name=>label)

Returns tag names and their corresponding weights.

findTagWeights( $limit = 20): array

Only the tags with the top weights will be returned.

Arguments

$limit

Response

array

weights indexed by tag names.

Returns the static model of the specified AR class.

model( $className = __CLASS__): static
static

Arguments

$className

Response

static

the static model class

relations

relations(): array

Response

array

relational rules.

removeTags

removeTags( $tags)

Arguments

$tags

rules

rules(): array

Response

array

validation rules for model attributes.

string2array

string2array( $tags)
static

Arguments

$tags

Suggests a list of existing tags matching the specified keyword.

suggestTags( $keyword, $limit = 20): array

Arguments

$keyword

$limit

Response

array

list of matching tag names

tableName

tableName(): string

Response

string

the associated database table name

updateFrequency

updateFrequency( $oldTags, $newTags)

Arguments

$oldTags

$newTags

Properties

id

id :integer

Type(s)

integer

name

name :string

Type(s)

string

frequency

frequency :integer

Type(s)

integer