Static Public Member Functions | Public Attributes

Robo47_Core Class Reference

List of all members.

Static Public Member Functions

static getType ($var)
 Get Type.

Public Attributes

const VERSION = '0.1'
 Robo47 Components version identification.

Detailed Description

Definition at line 31 of file Core.php.


Member Function Documentation

static Robo47_Core::getType ( var  )  [static]

Get Type.

Returns the type of the variable or class if it is an object

Parameters:
mixed $var
Returns:
string

Definition at line 46 of file Core.php.

Referenced by Robo47_Paginator_Adapter_DoctrineQuery::getItems(), Robo47_Doctrine_Hydrator_PopoDriver::setDefaultClassname(), Robo47_Doctrine_Hydrator_PopoDriver::setDefaultContainerClassname(), and Robo47_Doctrine_Hydrator_PopoDriver::setDefaultTypename().

    {
        $type = strtolower(gettype($var));
        if ($type == 'object') {
            $type = get_class($var);
        }
        return $type;
    }

Here is the caller graph for this function:


Member Data Documentation

const Robo47_Core::VERSION = '0.1'

Robo47 Components version identification.

Definition at line 36 of file Core.php.


The documentation for this class was generated from the following file: