Mage_Core_Model_Config_Element Class Reference

Inheritance diagram for Mage_Core_Model_Config_Element:

Varien_Simplexml_Element

List of all members.

Public Member Functions

 is ($var, $value=true)
 getClassName ()


Detailed Description

Definition at line 34 of file Element.php.


Member Function Documentation

getClassName (  ) 

Enter description here...

Returns:
string

Definition at line 65 of file Element.php.

00066     {
00067         if ($this->class) {
00068             $model = (string)$this->class;
00069         } elseif ($this->model) {
00070             $model = (string)$this->model;
00071         } else {
00072             return false;
00073         }
00074         return Mage::getConfig()->getModelClassName($model);
00075     }

is ( var,
value = true 
)

Enter description here...

Parameters:
string $var
boolean $value
Returns:
boolean

Definition at line 44 of file Element.php.

00045     {
00046         $flag = $this->$var;
00047 
00048         if ($value===true) {
00049             $flag = strtolower((string)$flag);
00050             if (!empty($flag) && 'false'!==$flag && '0'!==$flag && 'off'!==$flag) {
00051                 return true;
00052             } else {
00053                 return false;
00054             }
00055         }
00056 
00057         return !empty($flag) && (0===strcasecmp($value, (string)$flag));
00058     }


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

Generated on Sat Jul 4 17:23:56 2009 for Magento by  doxygen 1.5.8