[ Index ]

PHP Cross Reference of ACL Module

title

Body

[close]

/models/ -> Util.php (summary)

(no description)

File Size: 107 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Util:: (5 methods):
  getDataBaseType()
  getNodeNameOfObject()
  generateInStatement()
  getIdsOfObjects()
  getByIdentifier()


Class: Util  - X-Ref

Utility Class

getDataBaseType($obj)   X-Ref
Returns the database-type of the given object

param: AclObject $obj
return: string

getNodeNameOfObject(AclObject $obj)   X-Ref
Returns the class-name of the node belonging to the given Object

param: PmAclObject $obj
return: string

generateInStatement($options)   X-Ref
Generates a database-IN-statement out of the given options

param: array[string] $options
return: string the in-statement

getIdsOfObjects($objects)   X-Ref
Extracts the IDs of the given bunch of objects and returns them in
an indexed arry

param: array $objects
return: array[int]

getByIdentifier($identifier)   X-Ref
Retrieves the requested object by the given identifier (an object)
Will throw an exception if the model-name is invalid but return NULL
if the identifier doesn't match any instance.

param: AclObject identifier [model, foreign_key]



Generated: Sun Jul 1 19:24:45 2012 Cross-referenced by PHPXref 0.7.1