Пример #1
0
 /**
  * \param $id either a question ID or an array of question IDs
  * \return a QuestionRequest object
  *
  * This method is used for retrieving questions from the site. Simply chain
  * methods to the return value of this method and then call Exec() to issue
  * the request and receive a response object.
  *
  * <b>Example:</b> <kbd>$response = $site->Questions()->SortByVotes()->Min(100)->Exec();</kbd>
  */
 public function Questions($id = null)
 {
     $request = new QuestionRequest($this->api_domain);
     // Add the IDs if supplied
     if ($id !== null) {
         $request->ID($id);
     }
     return $request;
 }