本文整理汇总了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);
}