本文整理匯總了PHP中Division::setShift方法的典型用法代碼示例。如果您正苦於以下問題:PHP Division::setShift方法的具體用法?PHP Division::setShift怎麽用?PHP Division::setShift使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Division
的用法示例。
在下文中一共展示了Division::setShift方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: createCopyForSchoolYear
public function createCopyForSchoolYear(PropelPDO $con = null, $career_school_year)
{
$copy_division = new Division();
$copy_division->setDivisionTitle($this->getDivisionTitle());
$copy_division->setCareerSchoolYear($career_school_year);
$copy_division->setShift($this->getShift());
$copy_division->setYear($this->getYear());
$copy_division->save($con);
$this->copyPreceptorsToDivision($con, $copy_division);
$this->copyCoursesToDivision($con, $copy_division, $career_school_year);
if ($this->getYear() <= $career_school_year->getCareer()->getQuantityYears() && $this->getYear() > 1) {
$copy_division->createStudentsForNextYear($con, $this->getCareerSchoolYear());
}
$copy_division->clearAllReferences(true);
unset($copy_division);
$career_school_year->clearAllReferences(true);
unset($career_school_year);
$this->clearAllReferences(true);
}