Class PhpgaclAxoSection

Description

Model to manipulate phpGACL AXO sections.

  • since: 1.0
  • author: Mariano Iglesias

Located in /plugins/phpgacl/models/phpgacl_axo_section.php (line 24)

AppModel
   |
   --PhpgaclAppModel
      |
      --PhpgaclAxoSection
Variable Summary
array $hasMany
string $name
string $useTable
array $validate
Method Summary
bool beforeFind (array $queryData)
void beforeValidate ()
Variables
array $hasMany = array(
'PhpgaclAxo' => array (
'className' => 'PhpgaclAxo',
'foreignKey' => 'section_value'
))
(line 51)

Models that belong to this model. This model's construct will set up appropiate finderQuery.

  • since: 1.0
  • access: protected
string $name = 'PhpgaclAxoSection' (line 35)

Name for the model.

  • since: 1.0
  • access: protected
string $useTable = 'axo_sections' (line 43)

Table used by this model.

  • since: 1.0
  • access: protected
array $validate = array(
'value' => '/[a-z0-9\_\-]{1,}$/i',
'name' => VALID_NOT_EMPTY
)
(line 64)

Validation rules for this model.

  • since: 1.0
  • access: protected
Methods
beforeFind (line 80)

We need to set up a finderQuery for this model so we do it just before the *first* call to a find method.

  • return: Perform the query, or quit
  • since: 1.0
  • access: protected
bool beforeFind (array $queryData)
  • array $queryData: The query that is about to be executed
beforeValidate (line 114)

Runs before a validation is executed. Used to validate for uniqueness of records and prevent parent_id looping.

  • since: 1.0
  • access: protected
void beforeValidate ()

Inherited Methods

Inherited From PhpgaclAppModel

PhpgaclAppModel::__construct()
PhpgaclAppModel::isDuplicate()
PhpgaclAppModel::_getCurrentId()

Documentation generated on Thu, 08 Mar 2007 21:52:45 -0300 by phpDocumentor 1.3.1