本文整理汇总了PHP中PhabricatorSavedQuery::setParameter方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorSavedQuery::setParameter方法的具体用法?PHP PhabricatorSavedQuery::setParameter怎么用?PHP PhabricatorSavedQuery::setParameter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhabricatorSavedQuery
的用法示例。
在下文中一共展示了PhabricatorSavedQuery::setParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('types', $this->readListFromRequest($request, 'types'));
$saved->setParameter('name', $request->getStr('name'));
return $saved;
}
示例2: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('status', $request->getStr('status'));
$saved->setParameter('order', $request->getStr('order'));
return $saved;
}
示例3: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$query = new PhabricatorSavedQuery();
$query->setParameter('resourcePHIDs', $this->readListFromRequest($request, 'resources'));
$query->setParameter('leasePHIDs', $this->readListFromRequest($request, 'leases'));
return $query;
}
示例4: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('authorPHIDs', $this->readUsersFromRequest($request, 'authors'));
$saved->setParameter('upcoming', $request->getBool('upcoming'));
return $saved;
}
示例5: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('repositoryPHIDs', $this->readPHIDsFromRequest($request, 'repositories', array(PhabricatorRepositoryRepositoryPHIDType::TYPECONST)));
$saved->setParameter('pusherPHIDs', $this->readUsersFromRequest($request, 'pushers'));
return $saved;
}
示例6: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('statuses', $this->readListFromRequest($request, 'statuses'));
$saved->setParameter('qualities', $this->readListFromRequest($request, 'qualities'));
return $saved;
}
示例7: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('participantPHIDs', $this->readUsersFromRequest($request, 'participants'));
$saved->setParameter('fulltext', $request->getStr('fulltext'));
$saved->setParameter('threadType', $request->getStr('threadType'));
return $saved;
}
示例8: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('colors', $request->getArr('colors'));
$saved->setParameter('group', $request->getStr('group'));
$saved->setParameter('objectFilter', $request->getStr('objectFilter'));
return $saved;
}
示例9: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('status', $request->getStr('status'));
$saved->setParameter('severity', $request->getStr('severity'));
$saved->setParameter('requestorPHIDs', $this->readUsersFromRequest($request, 'requestors'));
return $saved;
}
示例10: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('userPHIDs', $this->readUsersFromRequest($request, 'users'));
$saved->setParameter('projectPHIDs', array_values($request->getArr('projectPHIDs')));
$saved->setParameter('viewerProjects', $request->getBool('viewerProjects'));
return $saved;
}
示例11: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('signerPHIDs', $this->readUsersFromRequest($request, 'signers'));
$saved->setParameter('documentPHIDs', $this->readPHIDsFromRequest($request, 'documents', array(PhabricatorLegalpadDocumentPHIDType::TYPECONST)));
$saved->setParameter('nameContains', $request->getStr('nameContains'));
$saved->setParameter('emailContains', $request->getStr('emailContains'));
return $saved;
}
示例12: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('authorPHIDs', $this->readUsersFromRequest($request, 'authors'));
$saved->setParameter('explicit', $request->getBool('explicit'));
$saved->setParameter('createdStart', $request->getStr('createdStart'));
$saved->setParameter('createdEnd', $request->getStr('createdEnd'));
return $saved;
}
示例13: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('isStable', $request->getStr('isStable'));
$saved->setParameter('isUnstable', $request->getStr('isUnstable'));
$saved->setParameter('isDeprecated', $request->getStr('isDeprecated'));
$saved->setParameter('nameContains', $request->getStr('nameContains'));
return $saved;
}
示例14: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('authorPHIDs', $this->readUsersFromRequest($request, 'authors'));
$saved->setParameter('contentType', $request->getStr('contentType'));
$saved->setParameter('ruleType', $request->getStr('ruleType'));
$saved->setParameter('disabled', $this->readBoolFromRequest($request, 'disabled'));
return $saved;
}
示例15: buildSavedQueryFromRequest
public function buildSavedQueryFromRequest(AphrontRequest $request)
{
$saved = new PhabricatorSavedQuery();
$saved->setParameter('name', $request->getStr('name'));
$saved->setParameter('installed', $this->readBoolFromRequest($request, 'installed'));
$saved->setParameter('beta', $this->readBoolFromRequest($request, 'beta'));
$saved->setParameter('firstParty', $this->readBoolFromRequest($request, 'firstParty'));
$saved->setParameter('launchable', $this->readBoolFromRequest($request, 'launchable'));
return $saved;
}