In file D:\oblib-core\php\oblib\dataList\dataList.list.php between lines 226 and 256.
<?php
/**
*
*/
class dataArray extends dataList
{
private $_strNodeType;
public $slp_strNodeType;
function __construct ($strNodeName, $strNodeType)
{
parent::__construct ($strNodeName);
$this->_strNodeType = $strNodeType;
}
function ___Index ($objNode)
{
return $objNode->___Primary ();
}
public function ___Push ($objNode)
{
if ($this->_strNodeType)
{
if (!($objNode instanceOf $this->_strNodeType) && !is_subclass_of ($objNode, $this->_strNodeType))
{
throw new ExceptionCore ('Object must be of type: ' . $this->_strNodeType);
}
}
return parent::___Push ($objNode);
}
}
?>