當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tags::getAll方法代碼示例

本文整理匯總了PHP中Tags::getAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tags::getAll方法的具體用法?PHP Tags::getAll怎麽用?PHP Tags::getAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tags的用法示例。


在下文中一共展示了Tags::getAll方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: die

$user = $_SESSION['user'];
/* Init Databases */
$db = mysql_connect(WALKER_DB_HOST, WALKER_DB_USERNAME, WALKER_DB_PASSWORD) or die('Could not connect: ' . mysql_error());
mysql_select_db(WALKER_DB_NAME);
mysql_query('SET NAMES utf8');
mysql_query('SET CHARACTER SET utf8');
mysql_query("SET COLLATION_CONNECTION='utf8_general_ci'");
/* Zend_Cache solution */
$frontendOptions = array('lifetime' => LIFETIME, 'automatic_serialization' => true);
$backendOptions = array('cache_dir' => CACHE_DIR);
$cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);
$content = Zend_Cache::factory('Core', 'File', array('lifetime' => LIFETIME_OF_CONTET, 'automatic_serialization' => true), array('cache_dir' => CACHE_DIR));
/* Get tags list */
$tags = new Tags();
if (ROOT) {
    $tag_list = $tags->getAll(true);
} else {
    $tag_list = $tags->getAll();
}
$view->assign('tag', $tag_list);
/* Get links list */
$links = new Links("schema/Links.xml");
$link_list = $links->output();
$view->assign('links', $link_list);
if (isset($_GET['m'])) {
    $m = strtolower(trim($_GET['m']));
} else {
    $m = 'home';
}
switch ($m) {
    default:
開發者ID:laiello,項目名稱:project-walker,代碼行數:31,代碼來源:walker.php

示例2: changeTags

 /**
  * Show the tag list
  * @return unknown_type
  */
 function changeTags()
 {
     if ($this->_realAccessLevel < ACCESS_LEVEL_DEMO && !$_SESSION['CATS']->hasUserCategory('careerportal')) {
         CommonErrors::fatal(COMMONERROR_PERMISSION, $this);
         return;
         //$this->fatal(ERROR_NO_PERMISSION);
     }
     $tags = new Tags($this->_siteID);
     $tagsRS = $tags->getAll();
     //if (!eval(Hooks::get('SETTINGS_EMAIL_TEMPLATES'))) return;
     $this->_template->assign('active', $this);
     $this->_template->assign('subActive', 'Administration');
     $this->_template->assign('tagsRS', $tagsRS);
     $this->_template->display('./modules/settings/tags.tpl');
 }
開發者ID:rankinp,項目名稱:OpenCATS,代碼行數:19,代碼來源:SettingsUI.php

示例3: addCandidateTags

 private function addCandidateTags()
 {
     /* Bail out if we don't have a valid candidate ID. */
     if (!$this->isRequiredIDValid('candidateID', $_GET)) {
         CommonErrors::fatalModal(COMMONERROR_BADINDEX, $this, 'Invalid candidate ID.');
     }
     $candidateID = $_GET['candidateID'];
     $candidates = new Candidates($this->_siteID);
     $candidateData = $candidates->get($candidateID);
     /* Bail out if we got an empty result set. */
     if (empty($candidateData)) {
         CommonErrors::fatalModal(COMMONERROR_BADINDEX, $this);
         return;
         /*$this->fatalModal(
               'The specified candidate ID could not be found.'
           );*/
     }
     $tags = new Tags($this->_siteID);
     $tagsRS = $tags->getAll();
     $this->_template->assign('candidateID', $candidateID);
     $this->_template->assign('assignedTags', $tags->getCandidateTagsID($candidateID));
     $this->_template->assign('isFinishedMode', false);
     $this->_template->assign('tagsRS', $tagsRS);
     $this->_template->display('./modules/candidates/AssignCandidateTagModal.tpl');
 }
開發者ID:rankinp,項目名稱:OpenCATS,代碼行數:25,代碼來源:CandidatesUI.php


注:本文中的Tags::getAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。