本文整理汇总了PHP中Institution::Addinstitution方法的典型用法代码示例。如果您正苦于以下问题:PHP Institution::Addinstitution方法的具体用法?PHP Institution::Addinstitution怎么用?PHP Institution::Addinstitution使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Institution
的用法示例。
在下文中一共展示了Institution::Addinstitution方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: institutionaddAction
public function institutionaddAction()
{
require_once 'models/table/Tutoredit.php';
if (isset($_POST['submit'])) {
$institute = new Institution();
$newid = $institute->Addinstitution($_POST);
$helper = new Helper();
$helper->addUserInstitutionRights($helper->myid, $newid);
# $instituteid = ($_POST[edittable])?$_POST['editid']:$institute->Addinstitution($_POST);
$this->_redirect(Settings::$COUNTRY_BASE_URL . "/institution/institutionedit/id/" . $newid);
# echo ("<script language=\"JavaScript\">location.replace('institutionedit/id/" . $instituteid . "');</script>\n");
# exit;
}
# CREATING HELPER
$helper = new Helper();
# GETTING CADRES
$listcadre = $helper->getCadres();
$this->view->assign('getcadre', $listcadre);
# GETTING INSTITUTION TYPES
$types = $helper->getInstitutionTypes();
$this->view->assign('institutiontypes', $types);
$this->viewAssignEscaped('locations', Location::getAll());
$this->view->assign('action', '');
$sponsors = $helper->getSponsors();
$this->view->assign('lookupsponsors', $sponsors);
# GETTING LOOKUPS
$this->view->assign('lookupdegrees', $helper->getDegrees());
}