Tuskfish API
  • Package
  • Class

Packages

  • content
  • core
  • database
  • installation
  • security
  • user
  • utilities

Classes

  • TfishArticle
  • TfishArticleHandler
  • TfishAudio
  • TfishAudioHandler
  • TfishBlock
  • TfishBlockHandler
  • TfishCollection
  • TfishCollectionHandler
  • TfishContentHandler
  • TfishContentObject
  • TfishDownload
  • TfishDownloadHandler
  • TfishImage
  • TfishImageHandler
  • TfishMetadata
  • TfishRss
  • TfishStatic
  • TfishStaticHandler
  • TfishTag
  • TfishTagHandler
  • TfishTaglink
  • TfishTaglinkHandler
  • TfishTemplate
  • TfishVideo
  • TfishVideoHandler

Class TfishTaglink

Taglink object class.

Taglink objects are used to create relationships between content objects and tag objects, thereby facilitating retrieval of related content. Taglinks are stored in their own table.

Package: content
Copyright: Simon Wilkinson 2013-2017 (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfishTaglink.php

Methods summary

public
# __construct( )

Initialise default property values and unset unneeded ones.

Initialise default property values and unset unneeded ones.

public mixed|null
# __get( string $property )

Get the value of a property.

Get the value of a property.

Intercepts direct calls to access an object property. This method can be overridden to impose processing logic to the value before returning it.

Parameters

$property
Name of property.

Returns

mixed|null
$property Value if property is set; otherwise null.
public
# __set( string $property, mixed $value )

Set the value of a whitelisted property.

Set the value of a whitelisted property.

Intercepts direct calls to set the value of an object property. This method is overridden by child classes to impose data type restrictions and range checks before allowing the property to be set. Tuskfish objects are designed not to trust other components; each conducts its own internal validation checks.

Parameters

$property
Name of property.
$value
Value of property.
public boolean
# __isset( string $property )

Check if a property is set.

Check if a property is set.

Intercepts isset() calls to correctly read object properties. Can be overridden in child objects to add processing logic for specific properties.

Parameters

$property
Name of property.

Returns

boolean
True if set, otherwise false.
public boolean
# __unset( string $property )

Unsets a property.

Unsets a property.

Intercepts unset() calls to correctly unset object properties. Can be overridden in child objects to add processing logic for specific properties.

Parameters

$property
Name of property.

Returns

boolean
True on success, false on failure.

Properties summary

protected array $__data

Array holding the values of taglink object properties, accessed via magic methods.

Array holding the values of taglink object properties, accessed via magic methods.

# array( 'id', 'tag_id', 'content_type', 'content_id', 'handler')

Magic properties

public integer $id

ID of this taglink object

public integer $tag_id

ID of the tag object

public string $content_type

type of content object

public string $handler

The handler for taglink objects

Tuskfish API API documentation generated by ApiGen