本文整理匯總了PHP中TagPeer::getIdsFromTagsValues方法的典型用法代碼示例。如果您正苦於以下問題:PHP TagPeer::getIdsFromTagsValues方法的具體用法?PHP TagPeer::getIdsFromTagsValues怎麽用?PHP TagPeer::getIdsFromTagsValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TagPeer
的用法示例。
在下文中一共展示了TagPeer::getIdsFromTagsValues方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: executeInteressi
public function executeInteressi()
{
$this->session = $this->getUser();
$this->ramo = $this->getRequestParameter('ramo', 'C');
if ($this->hasRequestParameter('triple_value')) {
$triple_value = $this->getRequestParameter('triple_value');
$this->tags_ids = TagPeer::getIdsFromTagsValues($triple_value);
//array(TagPeer::retrieveFirstByTripleValue($triple_value));
} else {
$this->tags = trim(strip_tags($this->getRequestParameter('tag_search', '')), " ,");
sfContext::getInstance()->getLogger()->info('{interessi}' . $this->tags);
$this->tags_ids = TagPeer::getIdsFromTagsValues($this->tags);
}
$limit = null;
if ($this->hasRequestParameter('limit')) {
$limit = $this->getRequestParameter('limit');
}
// la data è passata come parametro o viene estratta l'ultima nella cache (per dati di tipo 'A', singoli atti)
if ($this->hasRequestParameter('data')) {
$data = $this->getRequestParameter('data');
} else {
$data = OppActHistoryCachePeer::fetchLastData();
}
if (is_array($this->tags_ids) && count($this->tags_ids)) {
$this->politici = OppCaricaPeer::getClassificaPoliticiSiOccupanoDiArgomenti($this->tags_ids, $this->ramo, $data, $limit);
}
}