public function index($handler_id, $data)
    {
        $result = null;
        $this->hook->attach('search.index', $handler_id, $data, $result, $this);

        if (isset($result)) {
            return $result;
        }

        return $this->callHandler($handler_id, 'index', array($data, $this));
    }
public function index($handler_id, $data)
    {
        $result = null;
        $this->hook->attach('search.index', $handler_id, $data, $result, $this);

        if (isset($result)) {
            return $result;
        }

        return $this->callHandler($handler_id, 'index', array($data, $this));
    }
public function index ( $ handler_id , $ data ) { $ result = null ; $ this -> hook -> attach ( 'search.index' , $ handler_id , $ data , $ result , $ this ) ; if ( isset ( $ result ) ) { return $ result ; } return $ this -> callHandler ( $ handler_id , 'index' , array ( $ data , $ this ) ) ; }
Indexes an item
@param string $handler_id
@param array|string $data
@return mixed
Indexes an item