This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Library_AttributeTypeController

A generic object that every block or page controller extends

Concrete5_Library_Controller
Extended by Controller
Extended by Concrete5_Library_AttributeTypeController

Direct known subclasses

AttributeTypeController

Package: Core
Category: Concrete
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at core/libraries/attribute/controller.php

Methods summary

public
# setRequestArray( $array )
public
# setAttributeKey( $attributeKey )
public
# setAttributeValue( $attributeValue )
public
public
public
public
# exportKey( $ak )
public
# importValue( SimpleXMLElement $akv )
public
# exportValue( SimpleXMLElement $akv )
public
# importKey( $akn )
protected
public
# field( $fieldName )
public
# label( $customText = false )
public
public mixed
# post( string $field = false, mixed $defaultValue,… )

If no arguments are passed, returns the post array. If a key is passed, it returns the value as it exists in the post array. If a default value is provided and the key does not exist in the POST array, the default value is returned

public mixed
# request( string $field = false, mixed $defaultValue,… )

If no arguments are passed, returns the REQUEST array. If a key is passed, it returns the value as it exists in the request array. If a default value is provided and the key does not exist in the REQUEST array, the default value is returned

public string
# getView( )

Gets the current view for the controller (typically the page's handle)

public
public
# setupAndRun( $method )

Based on the current request, the Controller object is loaded with the parameters and task requested The requested method is then run on the active controller (if that method exists)

public
# saveKey( )
public
public
# searchKeywords( $keywords, $list = false )
public
# validateKey( $args = false )

Properties summary

protected $identifier
#
protected static array $sets
# array()
protected $attributeKey
#
protected boolean $requestArray
# false