inDatabasePublishing() public method

public inDatabasePublishing ( ) : boolean
return boolean
コード例 #1
0
 public function getImport()
 {
     $replace = \Request::get('replace', false);
     $group = \Request::get('group', '*');
     $counter = $this->manager->importTranslations($group === '*' ? $replace : ($this->manager->inDatabasePublishing() == 1 ? 0 : 1), $group === '*' ? null : [$group]);
     return \Response::json(array('status' => 'ok', 'counter' => $counter));
 }
コード例 #2
0
 public function getImport(HttpRequest $request)
 {
     $replace = $request->get('replace', false);
     $group = $request->get('group', '*');
     //$counter = $this->manager->importTranslations(($group !== '*' ? !$this->manager->inDatabasePublishing() : $replace), false, $group === '*' ? null : [$group]);
     $counter = $this->manager->importTranslations($group !== '*' ? !$this->manager->inDatabasePublishing() : $replace, $group === '*' ? null : [$group]);
     return Response::json(array('status' => 'ok', 'counter' => $counter));
 }