Example #1
0
 function _afterRead()
 {
     $reltype =& AMPContentLookup_SectionsByLink::instance($this->id);
     if (!$reltype) {
         return;
     }
     $this->mergeData(array('reltype' => array_keys($reltype)));
 }
Example #2
0
 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;
 }