I have found solution but it look not so great, i have used this code-
public function getOffServers(){
$output = new ArrayList();
$createdOptionsArrayData = false;
$children = $this->Children();
foreach ($children as $server) {
if ($server->Official == '1'){
$output->push(new ArrayData(array(
'Title' => $server->Title
)));
}
}
//Debug::Show($output);
return $output;
}
Posted to: Problems With "children()" | Show Thread | Post Reply