controllers/IndexController.php
/**
     * Get list of all active programs in system
     *
     * @param array $inputParams
     */
Get list of all active programs in system
@param array $inputParams
Get list of all active programs in system @param array $inputParams
public function populateProgramData(array $inputParams, $formParams) {
        $programs = array();
        $language = $inputParams[Constants::INPUT_PARAM_LANG];
        $category = $inputParams[Constants::INPUT_PARAM_CATE];
        $isValidRequest = $this->isValidProgramRequest($language, $category);
        $offset = empty($formParams['offset']) ? 0 : $formParams['offset'];
        $programs = $this->getModel()->getProgramList($language, $category, $offset);
        $this->setBean(
            array(
                'programList' => $programs,
                'isValidRequest' => $isValidRequest
            )
        );
    }
public function populateProgramData ( array $ inputParams , $ formParams ) { $ programs = array ( ) ; $ language = $ inputParams [ Constants :: INPUT_PARAM_LANG ] ; $ category = $ inputParams [ Constants :: INPUT_PARAM_CATE ] ; $ isValidRequest = $ this -> isValidProgramRequest ( $ language , $ category ) ; $ offset = empty ( $ formParams [ 'offset' ] ) ? 0 : $ formParams [ 'offset' ] ; $ programs = $ this -> getModel ( ) -> getProgramList ( $ language , $ category , $ offset ) ; $ this -> setBean ( array ( 'programList' => $ programs , 'isValidRequest' => $ isValidRequest ) ) ; }
Get list of all active programs in system
 @param array $inputParams
Get list of all active programs in system @param array $inputParams