public function monitor($type) { if (empty($this->monitors[$type][3])) { if ($obj = $this->lookup($type, FALSE)) { $this->attached($obj); } $this->monitors[$type][3] = TRUE; // mark as monitored } }