convertCourseSec ( $sect )

Source file: app/functions/section-function.php

View source


Used by


Source

function convertCourseSec($sect)
{
    $app = \Liten\Liten::getInstance();

    try {
        $section = $app->db->course_sec()
            ->select('courseSecCode')
            ->where('courseSecID = ?', $sect);
        $q = $section->find();
        foreach ($q as $r) {
            $section = $r->courseSecCode;
        }
        return $section;
    } catch (NotFoundException $e) {
        Cascade::getLogger('error')->error($e->getMessage());
        _etsis_flash()->error(_etsis_flash()->notice(409));
    } catch (ORMException $e) {
        Cascade::getLogger('error')->error($e->getMessage());
        _etsis_flash()->error(_etsis_flash()->notice(409));
    } catch (Exception $e) {
        Cascade::getLogger('error')->error($e->getMessage());
        _etsis_flash()->error(_etsis_flash()->notice(409));
    }
}


Changelog

  • Since: eduTrac SIS 4.4

User Contributed Notes

You must log in before being able to contribute a note.