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


PHP Header::title方法代碼示例

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


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

示例1: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, $f, $page)
 {
     $header->title('PayPic');
     $header->import('jqgeeks/bootstrap_css', 'mypage');
     $viewModel->assign("pname", "@RTPic");
     return self::showLatest($viewModel);
 }
開發者ID:rx-projects,項目名稱:comicasa,代碼行數:7,代碼來源:Images.php

示例2: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, $f, $page, $aid)
 {
     $header->title('PayPic');
     $header->import('picbootstrap', 'mypage');
     $viewModel->assign("pname", "@RTPic");
     $album = new Album($aid);
     $viewModel->assign("images", $album->getImges());
     return "images";
 }
開發者ID:rx-projects,項目名稱:comicasa,代碼行數:9,代碼來源:ViewAlbum.php

示例3: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, $f, $page, $pid)
 {
     $header->title('PayPic');
     $header->import('jqgeeks/bootstrap_css', 'mypage');
     $viewModel->assign("pname", "@RTPic");
     global $RDb;
     $image = $RDb->fetch("select * from files where id=%d", $pid);
     $viewModel->assign("image", $image);
     return "image";
 }
開發者ID:rx-projects,項目名稱:comicasa,代碼行數:10,代碼來源:buyImage.php

示例4: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, $f, $page)
 {
     $header->title('PayPic');
     $header->import('jqgeeks/bootstrap_css', 'mypage');
     $viewModel->assign("pname", "@RTPic");
     global $RDb;
     $imageAccess = $RDb->fetchAll("select * from file_access fa,files f,user u" . " where fa.pid=f.id and u.uid=fa.uid");
     $viewModel->assign("images", $imageAccess);
     return "imageAccess";
 }
開發者ID:rx-projects,項目名稱:comicasa,代碼行數:10,代碼來源:ImageAccess.php

示例5: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, User $user, $uname, $upass)
 {
     $header->title('PayPic');
     $header->import('jqgeeks/bootstrap_css', 'google_login');
     $viewModel->assign("pname", "@RTPic");
     if ($user->auth($uname, $upass)) {
         include_once HANDLER_PATH . "/Images.php";
         return Images::showlatest($viewModel);
     } else {
         return "login";
     }
 }
開發者ID:rx-projects,項目名稱:comicasa,代碼行數:12,代碼來源:Submitlogin.php

示例6: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, User $user, $page)
 {
     $header->title('PayPic');
     $viewModel->assign("pname", "@RTPic");
     if ($user->isValid()) {
         $header->import('jqgeeks/bootstrap_css', 'upload');
         global $RDb;
         $images = $RDb->fetchAll("select * from files where uid=%d AND albumid=0", $user->getToken());
         $viewModel->assign("images", $images);
         return "upload";
     } else {
         $header->import('jqgeeks/bootstrap_css', 'google_login');
         return "login";
     }
 }
開發者ID:rx-projects,項目名稱:comicasa,代碼行數:15,代碼來源:Upload.php

示例7: set_title

 public static function set_title($title)
 {
     Header::$title = $title;
 }
開發者ID:tsing,項目名稱:commando,代碼行數:4,代碼來源:Header.php

示例8: setTitle

 public static function setTitle($newTitle)
 {
     self::$title = $newTitle;
 }
開發者ID:afliw,項目名稱:ponponpon,代碼行數:4,代碼來源:header.php

示例9: invokeHandler

 /**
  * @param Smarty $viewModel
  * @param Header $header
  * @param DataModel $dataModel
  * @param User $user
  * @param string $view
  * @param string $module
  * @return string
  */
 public function invokeHandler(Smarty $viewModel, Header $header, DataModel $dataModel, User $user, $view = "empty", $module = "index_page")
 {
     $header->title("ThEroticStories");
     $header->import($module);
     return $view;
 }
開發者ID:rahugee,項目名稱:maple,代碼行數:15,代碼來源:IndexPage.php

示例10: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, DataModel $dataModel, AbstractUser $user, $view = "empty")
 {
     $header->title(DEFAULT_TITLE);
     $header->import(DEFAULT_BUNDLE);
     return $view;
 }
開發者ID:rudraks,項目名稱:core,代碼行數:6,代碼來源:SampleIndexHandler.php

示例11: invokeHandler

 public function invokeHandler(Smarty $viewModel, Header $header, $pid, $imageAction = "view", User $user)
 {
     $header->title('PayPic');
     $header->import('picbootstrap', 'mypage');
     $viewModel->assign("pname", "@RTPic");
     global $RDb;
     $picture = new Picture($pid, $user->getToken());
     //$image = Picture::getPicInfoById($pid);
     Browser::log($picture, $user->getToken(), $picture->image->uid, $user->getToken() == $picture->image->uid);
     $hasBaught = false;
     $hasSaved = false;
     $canBuy = false;
     if ($user->isValid()) {
         if ($picture->isMyPic()) {
             Browser::log('isMyPic');
             $user->set('canAccess_' . $pid, $picture->image->file_path);
         } else {
             $imageAccess = Picture::getPicAccess($pid, $user->getToken());
             $hasFileAccessIndexed = !empty($imageAccess);
             if ($hasFileAccessIndexed) {
                 $hasBaught = $imageAccess->baught == 1;
                 $hasSaved = $imageAccess->saved == 1;
             }
             $canBuy = $user->getCoins() >= $picture->image->price;
             if (strcmp("buyImage", $imageAction) == 0) {
                 if ($picture->isPaid() && !$hasBaught && $canBuy) {
                     if ($hasFileAccessIndexed) {
                         $RDb->update("update file_access set baught=1 where uid=%d AND pid=%d", $user->uid, $pid);
                     } else {
                         $RDb->update("INSERT INTO file_access (uid,pid,baught,saved) values(%d,%d,1,1)", $user->uid, $pid);
                         $hasFileAccessIndexed = true;
                     }
                     $user->setCoins($user->get('coins') - $picture->image->price);
                     $hasBaught = true;
                 }
             } else {
                 if (strcmp("saveImage", $imageAction) == 0) {
                     if ($hasFileAccessIndexed) {
                         $RDb->update("update file_access set saved=1 where uid=%d AND pid=%d", $user->uid, $pid);
                     } else {
                         $RDb->update("INSERT INTO file_access (uid,pid,baught,saved) values(%d,%d,0,1)", $user->uid, $pid);
                         $hasFileAccessIndexed = true;
                     }
                     $hasSaved = true;
                 } else {
                     if (strcmp("unsaveImage", $imageAction) == 0) {
                         if ($hasFileAccessIndexed) {
                             $RDb->update("update file_access set saved=0 where uid=%d AND pid=%d", $user->uid, $pid);
                         }
                         $hasFileAccessIndexed = true;
                         $hasSaved = false;
                     } else {
                         if (strcmp("likeImage", $imageAction) == 0) {
                             if ($hasFileAccessIndexed) {
                                 $like = $imageAccess->liked == 0 ? 1 : 0;
                                 $RDb->update("update file_access set liked=%d where uid=%d AND pid=%d", $like, $user->uid, $pid);
                             } else {
                                 $RDb->update("INSERT INTO file_access (uid,pid,liked,baught,saved) values(%d,%d,1,0,0)", $user->uid, $pid);
                             }
                             $picture->image->likes = $picture->image->likes + $like * 2 - 1;
                             $RDb->update("update files set likes=%d where id=%d", ${$picture}->image->likes, $pid);
                             $hasFileAccessIndexed = true;
                         }
                     }
                 }
             }
             if (!$picture->isPaid() || $hasBaught) {
                 $user->set('canAccess_' . $pid, $picture->image->file_path);
             }
         }
     }
     $viewModel->assign("isMyPic", $picture->isMyPic());
     $viewModel->assign("canBuy", $canBuy);
     $viewModel->assign("hasBaught", $hasBaught);
     $viewModel->assign("isPaid", $picture->isPaid());
     $viewModel->assign("hasSaved", $hasSaved);
     $viewModel->assign("image", $picture->image);
     return "image";
 }
開發者ID:rx-projects,項目名稱:comicasa,代碼行數:79,代碼來源:Image.php


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