This commit is contained in:
Nicolas Le Goff
2012-05-03 17:53:14 +02:00
parent eef67bc064
commit e32811ecb2
7 changed files with 28 additions and 26 deletions

View File

@@ -52,10 +52,10 @@ class ApcCache extends DoctrineApc implements Cache
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function deleteMulti(array $arrayKeys) public function deleteMulti(array $keys)
{ {
foreach ($arrayKeys as $id) { foreach ($keys as $key) {
$this->delete($id); $this->delete($key);
} }
return $this; return $this;

View File

@@ -53,10 +53,10 @@ class ArrayCache extends DoctrineArray implements Cache
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function deleteMulti(array $arrayKeys) public function deleteMulti(array $keys)
{ {
foreach ($arrayKeys as $id) { foreach ($keys as $key) {
$this->delete($id); $this->delete($key);
} }
return $this; return $this;

View File

@@ -45,8 +45,8 @@ interface Cache extends DoctrineCache
/** /**
* Delete multi cache entries * Delete multi cache entries
* *
* @param array $arrayKeys contains all keys to delete * @param array $keys contains all keys to delete
* @return Alchemy\Phrasea\Cache\Cache * @return Alchemy\Phrasea\Cache\Cache
*/ */
public function deleteMulti(array $arrayKeys); public function deleteMulti(array $keys);
} }

View File

@@ -52,10 +52,10 @@ class MemcacheCache extends DoctrineMemcache implements Cache
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function deleteMulti(array $arrayKeys) public function deleteMulti(array $keys)
{ {
foreach ($arrayKeys as $id) { foreach ($keys as $key) {
$this->delete($id); $this->delete($key);
} }
return $this; return $this;

View File

@@ -120,10 +120,10 @@ class RedisCache extends CacheProvider
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function deleteMulti(array $arrayKeys) public function deleteMulti(array $keys)
{ {
foreach ($arrayKeys as $id) { foreach ($keys as $key) {
$this->delete($id); $this->delete($key);
} }
return $this; return $this;

View File

@@ -52,10 +52,10 @@ class XcacheCache extends DoctrineXcache implements Cache
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function deleteMulti(array $arrayKeys) public function deleteMulti(array $keys)
{ {
foreach ($arrayKeys as $id) { foreach ($keys as $key) {
$this->delete($id); $this->delete($key);
} }
return $this; return $this;

View File

@@ -15,7 +15,9 @@
* @license http://opensource.org/licenses/gpl-3.0 GPLv3 * @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com * @link www.phraseanet.com
*/ */
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Silex\Application;
class API_V1_adapter extends API_V1_Abstract class API_V1_adapter extends API_V1_Abstract
{ {
@@ -99,7 +101,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param \Silex\Application $app The API silex application * @param \Silex\Application $app The API silex application
* @return \API_V1_result * @return \API_V1_result
*/ */
public function get_task_list(\Silex\Application $app) public function get_task_list(Application $app)
{ {
$result = new \API_V1_result($app['request'], $this); $result = new \API_V1_result($app['request'], $this);
@@ -130,7 +132,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param type $task_id * @param type $task_id
* @return \API_V1_result * @return \API_V1_result
*/ */
public function get_task(\Silex\Application $app, $taskId) public function get_task(Application $app, $taskId)
{ {
$result = new \API_V1_result($app['request'], $this); $result = new \API_V1_result($app['request'], $this);
@@ -166,7 +168,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param type $task_id The task id * @param type $task_id The task id
* @return \API_V1_result * @return \API_V1_result
*/ */
public function start_task(\Silex\Application $app, $taskId) public function start_task(Application $app, $taskId)
{ {
$result = new \API_V1_result($app['request'], $this); $result = new \API_V1_result($app['request'], $this);
@@ -198,7 +200,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param type $task_id The task id * @param type $task_id The task id
* @return \API_V1_result * @return \API_V1_result
*/ */
public function stop_task(\Silex\Application $app, $taskId) public function stop_task(Application $app, $taskId)
{ {
$result = new API_V1_result($app['request'], $this); $result = new API_V1_result($app['request'], $this);
@@ -233,7 +235,7 @@ class API_V1_adapter extends API_V1_Abstract
* @return \API_V1_result * @return \API_V1_result
* @throws \Exception_InvalidArgument * @throws \Exception_InvalidArgument
*/ */
public function set_task_property(\Silex\Application $app, $taskId) public function set_task_property(Application $app, $taskId)
{ {
$result = new API_V1_result($app['request'], $this); $result = new API_V1_result($app['request'], $this);
@@ -283,7 +285,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param \Silex\Application $app the silex application * @param \Silex\Application $app the silex application
* @return array * @return array
*/ */
protected function get_cache_info(\Silex\Application $app) protected function get_cache_info(Application $app)
{ {
$mainCache = $app['Core']['Cache']; $mainCache = $app['Core']['Cache'];
$opCodeCache = $app['Core']['OpcodeCache']; $opCodeCache = $app['Core']['OpcodeCache'];
@@ -317,7 +319,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param \Silex\Application $app the silex application * @param \Silex\Application $app the silex application
* @return array * @return array
*/ */
protected function get_config_info(\Silex\Application $app) protected function get_config_info(Application $app)
{ {
$ret = array(); $ret = array();
@@ -342,7 +344,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param \Silex\Application $app the silex application * @param \Silex\Application $app the silex application
* @return array * @return array
*/ */
protected function get_gv_info(\Silex\Application $app) protected function get_gv_info(Application $app)
{ {
$registry = $app['Core']['Registry']; $registry = $app['Core']['Registry'];
@@ -516,7 +518,7 @@ class API_V1_adapter extends API_V1_Abstract
* @param \Silex\Application $app the silex application * @param \Silex\Application $app the silex application
* @return \API_V1_result * @return \API_V1_result
*/ */
public function get_phraseanet_monitor(\Silex\Application $app) public function get_phraseanet_monitor(Application $app)
{ {
$result = new API_V1_result($app['request'], $this); $result = new API_V1_result($app['request'], $this);