ACL Extension  0.3
 All Data Structures Namespaces Files Functions Variables
HiddenClass Class Reference

Public Member Functions

 __construct ($className, $originalArguments)
 instantiateClass ($arg)
 pretends ()
 __call ($funcName, $args)
 __get ($name)
 __set ($key, $val)
 __isset ($key)
 __unset ($key)

Protected Attributes

 $class = NULL
 $obj = NULL

Detailed Description

Definition at line 13 of file HiddenClass.php.


Constructor & Destructor Documentation

__construct (   $className,
  $originalArguments 
)

Definition at line 18 of file HiddenClass.php.

{
$this->class = $className;
$this->instantiateClass($originalArguments);
}

Member Function Documentation

__call (   $funcName,
  $args 
)

Definition at line 48 of file HiddenClass.php.

{
return call_user_func_array(array($this->obj, $funcName), $args);
}
__get (   $name)

Definition at line 52 of file HiddenClass.php.

{
return $this->obj->{$name};
}
__isset (   $key)

Definition at line 60 of file HiddenClass.php.

{
return isset($this->obj->{$key});
}
__set (   $key,
  $val 
)

Definition at line 56 of file HiddenClass.php.

{
return $this->obj->{$key} = $val;
}
__unset (   $key)

Definition at line 64 of file HiddenClass.php.

{
return $this->obj->{$key};
}
instantiateClass (   $arg)

Definition at line 23 of file HiddenClass.php.

{
switch(count($arg)){
case 0:
$this->obj = new $this->class();
break;
case 1:
$this->obj = new $this->class($arg[0]);
break;
case 2:
$this->obj = new $this->class($arg[1]);
break;
case 3:
$this->obj = new $this->class($arg[2]);
break;
default:
throw new RuntimeException('Please expand this function yourself :)');
break;
}
}
pretends ( )

Definition at line 44 of file HiddenClass.php.

{
return $this->class;
}

Field Documentation

$class = NULL
protected

Definition at line 15 of file HiddenClass.php.

$obj = NULL
protected

Definition at line 16 of file HiddenClass.php.


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