Class PhpgaclAppModel

Description

The base model for all models in the plugin.

  • since: 1.0
  • author: Mariano Iglesias

Located in /plugins/phpgacl/phpgacl_app_model.php (line 24)

AppModel
   |
   --PhpgaclAppModel
Direct descendents
Class Description
PhpgaclAco Model to manipulate phpGACL ACOs.
PhpgaclAcoSection Model to manipulate phpGACL ACO sections.
PhpgaclAro Model to manipulate phpGACL AROs.
PhpgaclAroGroup Model to manipulate phpGACL ARO groups.
PhpgaclAxo Model to manipulate phpGACL AXOs.
PhpgaclAxoGroup Model to manipulate phpGACL AXO groups.
PhpgaclAxoSection Model to manipulate phpGACL AXO sections.
Method Summary
PhpgaclAppModel __construct ()
bool isDuplicate (string $field)
int _getCurrentId ()
Methods
Constructor __construct (line 32)

Override constructor to select appropiate DB connection.

  • since: 1.0
  • access: protected
PhpgaclAppModel __construct ()
isDuplicate (line 59)

Check to see if current submitted record is duplicate on specified $field. It will only perform the checking if specified field has no other validation errors.

  • return: true if it's duplicate, false otherwise
  • since: 1.0
  • access: protected
bool isDuplicate (string $field)
  • string $field: The field to check for uniqueness
_getCurrentId (line 89)

Helper function to get ID of current submitted model. It checks $this->data, and if not available $this->id.

  • return: Submitted ID
  • since: 1.0
  • access: protected
int _getCurrentId ()

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