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


PHP Requirements::perform_actions方法代碼示例

本文整理匯總了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();
開發者ID:bilfspk,項目名稱:student-online-clearance-system,代碼行數:31,代碼來源:Requirements.php


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