示例#1
0
 /**
  * Get objects matching the keywords having the current tag
  *
  * @param string $keywords Keywords
  *
  * @return CMbObject[]
  */
 function getObjects($keywords = "")
 {
     if (!$keywords) {
         $items = $this->loadRefItems();
     } else {
         $where = array("tag_id" => "= '{$this->_id}'", "object_class" => "= 'object_class'");
         $item = new CTagItem();
         $items = $item->seek($keywords, $where, 10000);
     }
     CMbArray::invoke($items, "loadTargetObject");
     return CMbArray::pluck($items, "_ref_object");
 }