Class CollectionKey

Base class for attribute keys.

Concrete\Core\Foundation\Object
Extended by Concrete\Core\Attribute\Key\Key
Extended by Concrete\Core\Attribute\Key\CollectionKey

Methods summary

public static
public static Concrete\Core\Attribute\Value\ValueList
# getAttributes( $cID, $cvID, $method = 'getValue' )

Returns an attribute value list of attributes and values (duh) which a collection version can store against its object.

public static
public static
public static
public
# getAttributeValue( $avID, $method = 'getValue' )
public static
# getByID( $akID )
public static
# getByHandle( $akHandle )
public static
# getList( )
protected
# saveAttribute( CollectionValue|mixed $nvc, mixed $value = false )

Calls the functions necessary to save this attribute to the database. If no passed value is passed, then we save it via the stock form. NOTE: this code is screwy because all code ever written that EXTENDS this code creates an attribute value object and passes it in, like this code implies. But if you call this code directly it passes the object that you're messing with (Page, User, etc...) in as the $attributeValue object, which is obviously not right. So we're going to do a little procedural if/then checks in this to ensure we're passing the right stuff.

public static
# add( $at, $args, $pkg = false )
public

Properties summary

protected array $searchIndexFieldDefinition
# array( 'columns' => array( array('name' => 'cID', 'type' => 'integer', 'options' => array('unsigned' => true, 'default' => 0, 'notnull' => true)), ), 'primary' => array('cID'), )

Properties inherited from Concrete\Core\Attribute\Key\Key

$akID

Properties inherited from Concrete\Core\Foundation\Object

$error