public function fillFromSearchResult(ItemSearch $item)
    {
        $query = parse_url($item->getLink(), PHP_URL_QUERY);
        parse_str($query, $query);
        if (empty($query[$this->getForm()->getName()])) {
            return;
        }

        return $this->fill($query[$this->getForm()->getName()]);
    }
public function fillFromSearchResult(ItemSearch $item)
    {
        $query = parse_url($item->getLink(), PHP_URL_QUERY);
        parse_str($query, $query);
        if (empty($query[$this->getForm()->getName()])) {
            return;
        }

        return $this->fill($query[$this->getForm()->getName()]);
    }
public function fillFromSearchResult ( ItemSearch $ item ) { $ query = parse_url ( $ item -> getLink ( ) , PHP_URL_QUERY ) ; parse_str ( $ query , $ query ) ; if ( empty ( $ query [ $ this -> getForm ( ) -> getName ( ) ] ) ) { return ; } return $ this -> fill ( $ query [ $ this -> getForm ( ) -> getName ( ) ] ) ; }
Fill from search result.

@param ItemSearch $item

@return Item|null
Fill from search result .