protected function normalizeObject($val, $bEmpty = false) { if ($val instanceof common\_object && !$val instanceof common\argumentable) { \Sylma::throwException(sprintf('Cannot normalize object instance of %s', $val->getInterface()->getName())); } else { if ($val instanceof common\argumentable) { if ($arg = $val->asArgument()) { $mResult = $arg; //$this->normalizeArgument($arg); } else { $mResult = null; } } else { if ($val instanceof common\stringable) { if ($sValue = $val->asString()) { $mResult = $this->normalizeArgument($this->getWindow()->argToInstance($sValue)->asArgument()); } } else { if ($val instanceof common\arrayable) { $mResult = $this->getWindow()->toString($val->asArray()); } else { $mResult = parent::normalizeObject($val, $bEmpty); } } } } return $mResult; }
public function &parseValue(array &$aPath, &$mValue, $bDebug) { if ($mResult = $this->checkClosure($mValue)) { prev($aPath); } else { $mResult =& parent::parseValue($aPath, $mValue, $bDebug); } return $mResult; }
public function add($mValue, $bRef = false) { $sResult = null; list($sKey, $sValue) = $mValue; if (!in_array($sKey, $this->aKeys)) { $this->aKeys[] = $sKey; $sResult = parent::add($sValue, $bRef); } return $sResult; }
public function add($mValue, $bRef = false) { if (is_array($mValue)) { foreach ($mValue as $mItem) { parent::add($mItem); } } else { parent::add($mValue); } }
public function read($sPath = '', $bDebug = true, $bHTML = false) { $sResult = parent::read($sPath, $bDebug); return $bHTML ? $sResult : htmlspecialchars($sResult); }
public function add($mValue, $bRef = false) { list($sKey, $sValue) = $mValue; return parent::add($sValue, $bRef); }