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,
) [static]

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

$className The class name to start with.
$upToAndNotIncludingClassName The class name to end with, and which is not included in the returned array.
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.

string $relationModelClassName
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 Thu Nov 21 07:11:12 2019