get_active_sacp ( $stu_id )

Get active SACP

Retrieve the student’s active program.

Return: (object)

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

View source


Used by


Source

function get_active_sacp($stu_id)
{
    $app = \Liten\Liten::getInstance();
    try {
        $sacp = $app->db->sacp()
            ->where('stuID = ?', $stu_id)->_and_()
            ->where('currStatus = "A"')
            ->find();

        return $sacp;
    } 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 6.3.0

User Contributed Notes

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