1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
function _getComsByTopId($iTopId)
{
$aTemp = array();
foreach ($this -> aComs as $aCom)
{
if ($aCom['co_top_id'] == $iTopId)
$aTemp[] = $aCom;
}
if (sizeof($aTemp) > 0)
return $aTemp;
return false;
}