Public Member Functions | |
is ($var, $value=true) | |
getClassName () |
Definition at line 34 of file Element.php.
getClassName | ( | ) |
Enter description here...
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...
string | $var | |
boolean | $value |
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 }