Source for file tangra_class.class.php
Documentation is available at tangra_class.class.php
// *** Tangra (Application Framework and Tools for PHP)
* Contains class Tangra_Class
require_once(TANGRA_MAIN_DIR. 'exceptions/te_no_such_property_exception.class.php');
* Base class for all tangra_lib classes
* Tangra_Class is the basic class inherited by all classes of Tangra library.
* It's purpose is to "forbid" usage of autosetter method __set, because this is
* very dangerous feature (you can easily set nonexisting variable by mistake and
* you will not get any error or warning...).
* Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.
* @throws TE_No_Such_Property_Exception
public function __set($name, $val) {
throw new TE_No_Such_Property_Exception('Attemp to set not existing object property/no access to property: '. $name. ' value:'. $val);
* Alias of get_class(). Exist because of historical reasons.
* @deprecated use PHP's built-in get_class() instead
|