Revize 1863
Přidáno uživatelem Ondřej Fibich před více než 11 roky(ů)
freenetis/branches/1.1/application/controllers/json.php | ||
---|---|---|
}
|
||
|
||
/**
|
||
* @see MY_Controller#is_preprocesor_enabled()
|
||
*/
|
||
protected function is_preprocesor_enabled()
|
||
{
|
||
return FALSE;
|
||
}
|
||
|
||
/**
|
||
* Function to return accounts belong to account type
|
||
*
|
||
* @author Michal Kliment
|
freenetis/branches/1.1/application/controllers/js.php | ||
---|---|---|
$this->view->render(TRUE);
|
||
}
|
||
|
||
/**
|
||
* @see MY_Controller#is_preprocesor_enabled()
|
||
*/
|
||
protected function is_preprocesor_enabled()
|
||
{
|
||
return FALSE;
|
||
}
|
||
|
||
/***************** Methods for javascript queries *************************/
|
||
|
||
private function _js_address_points_add()
|
freenetis/branches/1.1/application/libraries/MY_Controller.php | ||
---|---|---|
fclose($f);
|
||
}
|
||
|
||
// load these variables only for logged user
|
||
if ($this->user_id)
|
||
// load these variables only if preprocessor is enabled and user is logged
|
||
if ($this->is_preprocesor_enabled() && $this->user_id)
|
||
{
|
||
// for preprocessing some variable
|
||
try
|
||
... | ... | |
$axo_section, $axo_value, 'confirm', $member_id, $force_own
|
||
);
|
||
}
|
||
|
||
/**
|
||
* This methods defines whether the preprocessor of MY_Controller is loaded
|
||
* or not. By default preprocessor is loaded, for changing of this state
|
||
* this method should be overriden in child class. (#328)
|
||
*
|
||
* @author Ondřej Fibich
|
||
* @return boolean Is preprocessor loaded?
|
||
*/
|
||
protected function is_preprocesor_enabled()
|
||
{
|
||
return TRUE;
|
||
}
|
||
|
||
/**
|
||
* Function to preprocessing of some useful variables
|
Také k dispozici: Unified diff
Novinky:
- #328: zjednodusene nacitani (pomoci metody is_preprocesor_enabled())