RuntimeUtil Class Reference

Static Public Member Functions

static getClassHierarchy ($className, $upToAndNotIncludingClassName)
static getModelDerivationPathToItem ($modelClassName)

Detailed Description

Helper functionality for use in accessing type information at runtime.

Definition at line 40 of file RuntimeUtil.php.


Member Function Documentation

static getClassHierarchy ( className,
upToAndNotIncludingClassName 
) [static]

Returns an array of the name of the class and each of its parent classes up to but not including the given class.

Parameters:
$className The class name to start with.
$upToAndNotIncludingClassName The class name to end with, and which is not included in the returned array.
Returns:
An array of strings, starting with $className, and containing each of the class names in its inheritance hierachy.

Definition at line 54 of file RuntimeUtil.php.

static getModelDerivationPathToItem ( modelClassName  )  [static]

Given a modelClassName, find the deriviation path to Item. This is used by the castDown method for example in RedBeanModel.

Parameters:
string $relationModelClassName
Returns:
array of derivation path.

Definition at line 79 of file RuntimeUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Sep 25 07:10:29 2017