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


PHP Program::getName方法代碼示例

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


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

示例1: getAllProgramsFromDatabase

 public static function getAllProgramsFromDatabase($dbConn)
 {
     $programIds = readFromDatabase::readEntireColumnFromTable($dbConn, array(self::ID_COLUMN_NAME), self::TABLE_NAME);
     $programs = array();
     foreach ($programIds as $programId) {
         $program = new Program($dbConn, $programId[self::ID_COLUMN_NAME]);
         $programs[$program->getId()] = $program->getName();
     }
     return $programs;
 }
開發者ID:radioCKUT,項目名稱:digital-logsheets,代碼行數:10,代碼來源:manageProgramEntries.php

示例2: actionIndex

 /**
  * Display welcome information
  * Might display list of program, cycles in a program, or an application welcome page dependign on the url
  * Enter description here ...
  */
 public function actionIndex()
 {
     if (is_null($this->program)) {
         $this->setVar('programs', $this->_em->getRepository('Jazzee\\Entity\\Program')->findAllActive());
         $this->setLayoutVar('layoutTitle', 'Select a Program');
         $this->loadView($this->controllerName . '/programs');
         return true;
     }
     if (empty($this->application)) {
         $this->setLayoutVar('layoutTitle', $this->program->getName() . ' Application');
         $this->setVar('applications', $this->_em->getRepository('Jazzee\\Entity\\Application')->findByProgram($this->program, false, true));
         $this->loadView($this->controllerName . '/cycles');
         return true;
     }
     if (!$this->application->isPublished() or $this->application->getOpen() > new DateTime('now')) {
         $this->addMessage('error', $this->application->getCycle()->getName() . ' ' . $this->application->getProgram()->getName() . ' is not open for applicants');
         $this->redirectPath('apply/' . $this->application->getProgram()->getShortName());
     }
     $this->setLayoutVar('layoutTitle', $this->cycle->getName() . ' ' . $this->program->getName() . ' Application');
     $this->setVar('application', $this->application);
 }
開發者ID:Jazzee,項目名稱:Jazzee,代碼行數:26,代碼來源:apply_welcome.php

示例3: setProgram

 /**
  * Set program
  *
  * @param \Jazzee\Entity\Program $program
  */
 public function setProgram(Program $program)
 {
     if ($this->isGlobal) {
         throw new \Jazzee\Exception("{$this->name} is global but you are trying to set its program to " . $program->getName());
     }
     $this->program = $program;
 }
開發者ID:Jazzee,項目名稱:Jazzee,代碼行數:12,代碼來源:Role.php

示例4: getProgramName

 /**
  * @return string
  */
 public function getProgramName()
 {
     return $this->program != null ? $this->program->getName() : "";
 }
開發者ID:radioCKUT,項目名稱:digital-logsheets,代碼行數:7,代碼來源:Episode.php


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