本文整理匯總了PHP中Release::getId方法的典型用法代碼示例。如果您正苦於以下問題:PHP Release::getId方法的具體用法?PHP Release::getId怎麽用?PHP Release::getId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Release
的用法示例。
在下文中一共展示了Release::getId方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: store
/**
* Enregistre le Torrent
*/
public function store()
{
$oMysqli = Database::getInstance();
//On ajoute au besoin la release
$this->oRelease->storeIfNotExists();
//On récupère l'ID de la release
$iReleaseId = $this->oRelease->getId();
//On ajoute le torrent
$this->create($iReleaseId);
}
示例2: createTagsEdit
private function createTagsEdit()
{
//Suppression d'un tag
$sTags = '';
foreach ($this->oRelease->getTags() as $iTagId => $oRegex) {
$oButton = new View('button');
$oButton->addData('link', 'index.php?p=modrelease&a=deletetag&id=' . $this->oRelease->getId() . '&tag=' . $iTagId);
$oButton->addData('icon', 'fa-times');
$oButton->addData('style', 'info');
$oButton->addData('text', $oRegex->getName());
$oButton->create();
$sTags .= $oButton->getCode() . ' ';
}
//Ajout d'un tag
$aRegex = Regex::getSelectRegex();
$oPopupAdd = new View('popup');
$oPopupAdd->addData('id', 'addtag');
$oPopupAdd->addData('buttonstyle', 'btn-success');
$oPopupAdd->addData('buttonicon', 'fa-plus');
$oPopupAdd->addData('buttontext', 'Ajouter');
$oPopupAdd->addData('title', 'Ajouter un tag');
$oFormAdd = new FormGenerator();
$oFormAdd->setAction('index.php?p=modrelease&a=addtag&id=' . $this->oRelease->getId());
$oFormAdd->addSelect('Tag', 'tag', $aRegex);
$oFormAdd->create();
$oPopupAdd->addData('content', $oFormAdd->getCode());
$oPopupAdd->create();
$sTags .= $oPopupAdd->getCode();
$this->oView->addData('tagsdelete', $sTags);
}
示例3: idSorter
public static function idSorter(Release $a, Release $b)
{
return strnatcmp($a->getId(), $b->getId());
}