mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Cleanup namepaces, variables uses
This commit is contained in:
@@ -504,12 +504,6 @@ class Bridge_Api
|
||||
return new $classname($registry, $auth);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param string $name
|
||||
* @return Bridge_Api
|
||||
*/
|
||||
public static function get_by_api_name(Application $app, $name)
|
||||
{
|
||||
$name = strtolower($name);
|
||||
@@ -552,12 +546,6 @@ class Bridge_Api
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param string $name
|
||||
* @return Bridge_Api
|
||||
*/
|
||||
public static function create(Application $app, $name)
|
||||
{
|
||||
$sql = 'INSERT INTO bridge_apis
|
||||
|
@@ -109,13 +109,6 @@ class Bridge_Element
|
||||
const STATUS_PENDING = 'pending';
|
||||
const STATUS_ERROR = 'error';
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param Bridge_Account $account
|
||||
* @param int $id
|
||||
* @return Bridge_Element
|
||||
*/
|
||||
public function __construct(Application $app, Bridge_Account $account, $id)
|
||||
{
|
||||
$this->app = $app;
|
||||
@@ -446,13 +439,6 @@ class Bridge_Element
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param Bridge_Account $account
|
||||
* @param int $quantity
|
||||
* @return Bridge_Element
|
||||
*/
|
||||
public static function get_elements_by_account(Application $app, Bridge_Account $account, $offset_start = 0, $quantity = 50)
|
||||
{
|
||||
$sql = 'SELECT id FROM bridge_elements WHERE account_id = :account_id
|
||||
@@ -473,17 +459,6 @@ class Bridge_Element
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param Bridge_Account $account
|
||||
* @param record_adapter $record
|
||||
* @param string $title
|
||||
* @param string $status
|
||||
* @param string $type
|
||||
* @param array $datas
|
||||
* @return Bridge_Element
|
||||
*/
|
||||
public static function create(Application $app, Bridge_Account $account, record_adapter $record, $title, $status, $type, Array $datas = array())
|
||||
{
|
||||
$sql = 'INSERT INTO bridge_elements
|
||||
|
Reference in New Issue
Block a user