Esempio n. 1
0
 public function getSelf(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array();
     $enums = array();
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/', new Lead(), 'NODE', Lead::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
Esempio n. 2
0
 /**
  * @param array $fields
  * @param array $params
  * @return Cursor
  */
 public function getLeads(array $fields = array(), array $params = array())
 {
     return $this->getManyByConnection(Lead::className(), $fields, $params);
 }