Issue #0001788: [Dirigeants Opérationnels] creating cache files
This commit is contained in:
parent
257fae95bd
commit
ac9001bc06
@ -2526,20 +2526,23 @@ class SaisieController extends Zend_Controller_Action
|
|||||||
switch ($mode) {
|
switch ($mode) {
|
||||||
case 'add':
|
case 'add':
|
||||||
$fonction = $this->fctDir();
|
$fonction = $this->fctDir();
|
||||||
|
|
||||||
$this->view->assign('fonction', $fonction);
|
|
||||||
|
|
||||||
|
$this->view->assign('fonction', $fonction);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'edit':
|
case 'edit':
|
||||||
$fonction = $this->fctDir();
|
$fonction = $this->fctDir();
|
||||||
$infos = $ws->getDirigeantsOp($siren, $id);
|
$infos = $ws->getDirigeantsOp($siren, $id);
|
||||||
|
|
||||||
$this->view->assign('fonction', $fonction);
|
$this->view->assign('fonction', $fonction);
|
||||||
$this->view->assign('infos', $infos->item[0]);
|
$this->view->assign('infos', $infos->item[0]);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'del':
|
case 'del':
|
||||||
$infos = $ws->getDirigeantsOp($siren, $id);
|
$infos = $ws->getDirigeantsOp($siren, $id);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->assign('mode', $mode);
|
$this->view->assign('mode', $mode);
|
||||||
$this->view->assign('type', $type);
|
$this->view->assign('type', $type);
|
||||||
$this->view->assign('id', $id);
|
$this->view->assign('id', $id);
|
||||||
|
@ -2543,7 +2543,7 @@ class WsScores
|
|||||||
*/
|
*/
|
||||||
public function getDirigeantsOp($siren, $id = null)
|
public function getDirigeantsOp($siren, $id = null)
|
||||||
{
|
{
|
||||||
$filename = 'dirigeantsop-'.$siren;
|
$filename = 'dirigeantsop-'.$siren.'-'.intval($id);
|
||||||
|
|
||||||
if ($this->cacheWrite) {
|
if ($this->cacheWrite) {
|
||||||
$cache = new Cache($filename);
|
$cache = new Cache($filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user