getValue ())
{
$columns = implode (", ", $field->getColumnsView ());
$sth = $db->prepare (" SELECT ". $columns .", ". $field->getLinkColumn () ."
FROM ". $field->getLink () ."
WHERE _state = (SELECT _state
FROM ". $field->getLink () ."
WHERE ". $field->getLinkColumn () ." = '". $field->getValue () ."')
ORDER BY ". $columns);
$sth->execute ();
$linkColumn = $field->getLinkColumn ();
$linkView = $field->getLinkView ();
while ($item = $sth->fetch (PDO::FETCH_OBJ))
echo '';
}
elseif ($state = $field->getState ())
{
$columns = implode (", ", $field->getColumnsView ());
$sth = $db->prepare (" SELECT ". $columns .", ". $field->getLinkColumn () ."
FROM ". $field->getLink () ."
WHERE _state = '". $state ."'
ORDER BY ". $columns);
$sth->execute ();
$linkColumn = $field->getLinkColumn ();
$linkView = $field->getLinkView ();
while ($item = $sth->fetch (PDO::FETCH_OBJ))
echo '';
}
else
echo '';
?>