public function getItems(CamlQuery $camlQuery = null)
    {
        $items = new ListItemCollection($this->getContext(),new ResourcePathEntity($this->getContext(),$this->getResourcePath(),"items"));
        if(isset($camlQuery)){
            $qry = new InvokePostMethodQuery(
                $this->getResourcePath(),
                "GetItems",
                null,
                $camlQuery
            );
            $this->getContext()->addQuery($qry,$items);
        }
        return $items;
    }
public function getItems(CamlQuery $camlQuery = null)
    {
        $items = new ListItemCollection($this->getContext(),new ResourcePathEntity($this->getContext(),$this->getResourcePath(),"items"));
        if(isset($camlQuery)){
            $qry = new InvokePostMethodQuery(
                $this->getResourcePath(),
                "GetItems",
                null,
                $camlQuery
            );
            $this->getContext()->addQuery($qry,$items);
        }
        return $items;
    }
public function getItems ( CamlQuery $ camlQuery = null ) { $ items = new ListItemCollection ( $ this -> getContext ( ) , new ResourcePathEntity ( $ this -> getContext ( ) , $ this -> getResourcePath ( ) , "items" ) ) ; if ( isset ( $ camlQuery ) ) { $ qry = new InvokePostMethodQuery ( $ this -> getResourcePath ( ) , "GetItems" , null , $ camlQuery ) ; $ this -> getContext ( ) -> addQuery ( $ qry , $ items ) ; } return $ items ; }
Returns a collection of items from the list based on the specified query.
@param CamlQuery $camlQuery
@return ListItemCollection
Returns a collection of items from the list based on the specified query .