function _afterRead() { $reltype =& AMPContentLookup_SectionsByLink::instance($this->id); if (!$reltype) { return; } $this->mergeData(array('reltype' => array_keys($reltype))); }
function &instance($link_id) { static $lookup = false; if (!$lookup) { $lookup = new AMPContentLookup_SectionsByLink($link_id); } else { $lookup->_addCriteriaLink($link_id); $lookup->init(); } return $lookup->dataset; }