Exemplo n.º 1
0
function getStudentMarksByTestAndBatch($testObj, $batchObj)
{
    $conn = getConnection();
    $list = array();
    $stuobj = getAllActiveStudentsByBatch($batchObj, 1);
    for ($i = 0; $i < count($stuobj); $i++) {
        $markobj = getStudentMark($stuobj[$i], $testObj);
        $temp = array($stuobj[$i], $markobj);
        //$temp = array($stuobj[$i]);
        array_push($list, $temp);
    }
    if (count($list) != 0) {
        return $list;
    }
    return NULL;
}
Exemplo n.º 2
0
function getPendingPayementStudentList($feeObj, $feeInstallmentObj)
{
    $conn = getConnection();
    $stulist = array();
    $list = array();
    $stuobj = getAllActiveStudentsByBatch($feeObj->getBatchObj(), 1);
    for ($i = 0; $i < count($stuobj); $i++) {
        $flag = studentPayementExists($stuobj[$i], $feeInstallmentObj);
        if (!$flag) {
            array_push($list, $stuobj[$i]);
        }
    }
    if (count($list) != 0) {
        return $list;
    }
    return NULL;
}