本文整理匯總了PHP中Requirements::perform_actions方法的典型用法代碼示例。如果您正苦於以下問題:PHP Requirements::perform_actions方法的具體用法?PHP Requirements::perform_actions怎麽用?PHP Requirements::perform_actions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Requirements
的用法示例。
在下文中一共展示了Requirements::perform_actions方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: viewNext_Add_Requirements
var_dump("sy-sem:'$sy_sem' title:'$requirement_title' desc:'$requirement_desc' type:'$requirement_type' sig:'$signatory' ".
"appl:'$requirement_application' department:'$department' course:'$courses' yearlevel:'$year_level' program:'$program'");
*/
//$this->requirement_model->addRequirement($requirement_title, $requirement_desc, $thisSignantory, $sy_sem, $requirement_application, $department, $courses, $year_level, $program, $requirement_type, $signatory);
$this->requirement_model->editRequirement($id, $requirement_title, $requirement_desc, $thisSignantory, $sy_sem, $requirement_application, $department, $courses, $year_level, $program, $requirement_type, $signatory);
header("location:requirements.php");
}
/*----------- For the next page for Adding Requirements ------------*/
public function viewNext_Add_Requirements($T_title, $T_desc)
{
$this->template->setPageName("Adding Requirements Page");
$this->template->setContent("Next_Add_Requirements.tpl");
}
/*------------ Display UI -----------------*/
public function display()
{
$this->template->display('bootstrap.tpl');
}
public function getMaximumStrLen($strArray)
{
$temp = array();
foreach ($strArray as $value) {
$hold = strlen($value) > 15 ? substr($value, 0, 15) . "........ .... ." : $value;
array_push($temp, $hold);
}
return $temp;
}
}
$controller = new Requirements();
$controller->perform_actions();
$controller->display();