controllers/EditorController.php
/**
     * Checks if its a valid update request
     * 
     * @param array $formParams
     * @return boolean
     */
Checks if its a valid update request

@param array $formParams
@return boolean
Checks if its a valid update request @param array $formParams @return boolean
private function isUpdateRequest(array $formParams) {
        $hasUpdateValue = ($formParams['isupdate'] === self::IS_UPDATE_VALUE);
        $hasProgramID = is_numeric($formParams['programid']);
        return ($hasProgramID && $hasUpdateValue);
    }
private function isUpdateRequest ( array $ formParams ) { $ hasUpdateValue = ( $ formParams [ 'isupdate' ] === self :: IS_UPDATE_VALUE ) ; $ hasProgramID = is_numeric ( $ formParams [ 'programid' ] ) ; return ( $ hasProgramID && $ hasUpdateValue ) ; }
Checks if its a valid update request
Checks if its a valid update request