mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix doc blocks
This commit is contained in:
@@ -25,7 +25,8 @@ class Filename extends AbstractChecker
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param boolean $sensitive Toggle case-sensitive mode, default : false
|
* @param Application $app
|
||||||
|
* @param array $options An array of options. available : 'sensitive' (false by default)
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, array $options = array())
|
public function __construct(Application $app, array $options = array())
|
||||||
{
|
{
|
||||||
|
@@ -277,12 +277,12 @@ class File
|
|||||||
*
|
*
|
||||||
* @param string $pathfile The path to the file
|
* @param string $pathfile The path to the file
|
||||||
* @param \collection $collection The destination collection
|
* @param \collection $collection The destination collection
|
||||||
* @param MediaVorus $mediavorus A MediaVorus object
|
* @param Application $app An application
|
||||||
* @param string $originalName An optionnal original name (if
|
* @param string $originalName An optionnal original name (if
|
||||||
* different from the $pathfile filename)
|
* different from the $pathfile filename)
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
*
|
||||||
* @return \Alchemy\Phrasea\Border\File
|
* @return File
|
||||||
*/
|
*/
|
||||||
public static function buildFromPathfile($pathfile, \collection $collection, Application $app, $originalName = null)
|
public static function buildFromPathfile($pathfile, \collection $collection, Application $app, $originalName = null)
|
||||||
{
|
{
|
||||||
|
@@ -19,7 +19,7 @@ interface MetaBagInterface
|
|||||||
* The structure of the array depends of the target databox description
|
* The structure of the array depends of the target databox description
|
||||||
* structure.
|
* structure.
|
||||||
*
|
*
|
||||||
* @param \databox_descriptionStructure $metadatasStructure
|
* @param \databox_descriptionStructure $structure
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@@ -25,8 +25,9 @@ class CLI extends Application
|
|||||||
/**
|
/**
|
||||||
* Registers the autoloader and necessary components.
|
* Registers the autoloader and necessary components.
|
||||||
*
|
*
|
||||||
* @param string $name Name for this application.
|
* @param string $name Name for this application.
|
||||||
* @param string|null $version Version number for this application.
|
* @param string|null $version Version number for this application.
|
||||||
|
* @param string|null $environment The environment.
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $version = null, $environment = null)
|
public function __construct($name, $version = null, $environment = null)
|
||||||
{
|
{
|
||||||
|
@@ -41,10 +41,12 @@ interface Cache extends DoctrineCache
|
|||||||
/**
|
/**
|
||||||
* Get an entry from the cache.
|
* Get an entry from the cache.
|
||||||
*
|
*
|
||||||
* @param string $key cache id The id of the cache entry to fetch.
|
* @param string $key cache id The id of the cache entry to fetch.
|
||||||
|
*
|
||||||
* @return string The cached data.
|
* @return string The cached data.
|
||||||
* @return FALSE, if no cache entry exists for the given id.
|
* @return FALSE, if no cache entry exists for the given id.
|
||||||
* @ throws Alchemy\Phrasea\Cache\Exception if provided key does not exist
|
*
|
||||||
|
* @throws Alchemy\Phrasea\Cache\Exception if provided key does not exist
|
||||||
*/
|
*/
|
||||||
public function get($key);
|
public function get($key);
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@ class RedisCache extends CacheProvider implements Cache
|
|||||||
/**
|
/**
|
||||||
* Sets the redis instance to use.
|
* Sets the redis instance to use.
|
||||||
*
|
*
|
||||||
* @param Redis $memcache
|
* @param Redis $redis
|
||||||
*/
|
*/
|
||||||
public function setRedis(\Redis $redis)
|
public function setRedis(\Redis $redis)
|
||||||
{
|
{
|
||||||
@@ -38,7 +38,7 @@ class RedisCache extends CacheProvider implements Cache
|
|||||||
/**
|
/**
|
||||||
* Gets the memcache instance used by the cache.
|
* Gets the memcache instance used by the cache.
|
||||||
*
|
*
|
||||||
* @return Memcache
|
* @return Redis
|
||||||
*/
|
*/
|
||||||
public function getRedis()
|
public function getRedis()
|
||||||
{
|
{
|
||||||
|
@@ -398,9 +398,11 @@ class Databox implements ControllerProviderInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \Silex\Application $app
|
* @param Application $app
|
||||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
* @param Request $request
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
* @param integer $databox_id
|
||||||
|
*
|
||||||
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function getDatabase(Application $app, Request $request, $databox_id)
|
public function getDatabase(Application $app, Request $request, $databox_id)
|
||||||
{
|
{
|
||||||
@@ -568,9 +570,10 @@ class Databox implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Mount a collection on a databox
|
* Mount a collection on a databox
|
||||||
*
|
*
|
||||||
* @param Application $app The silex application
|
* @param Application $app The silex application
|
||||||
* @param Request $request The current HTTP request
|
* @param Request $request The current HTTP request
|
||||||
* @param integer $databox_id The requested databox
|
* @param integer $databox_id The requested databox
|
||||||
|
* @param integer $collection_id The requested collection id
|
||||||
* @return RedirectResponse
|
* @return RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function mountCollection(Application $app, Request $request, $databox_id, $collection_id)
|
public function mountCollection(Application $app, Request $request, $databox_id, $collection_id)
|
||||||
|
@@ -192,9 +192,9 @@ class Databoxes implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Create a new databox
|
* Create a new databox
|
||||||
*
|
*
|
||||||
* @param Application $app The silex application
|
* @param Application $app The silex application
|
||||||
* @param Request $request The current HTTP request
|
* @param Request $request The current HTTP request
|
||||||
* @param integer $databox_id The requested databox
|
*
|
||||||
* @return RedirectResponse
|
* @return RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function createDatabase(Application $app, Request $request)
|
public function createDatabase(Application $app, Request $request)
|
||||||
|
@@ -204,7 +204,7 @@ class Description implements ControllerProviderInterface
|
|||||||
$vocabulary = VocabularyController::get($app, $request->request->get('vocabulary_' . $id));
|
$vocabulary = VocabularyController::get($app, $request->request->get('vocabulary_' . $id));
|
||||||
$field->setVocabularyControl($vocabulary);
|
$field->setVocabularyControl($vocabulary);
|
||||||
$field->setVocabularyRestricted($request->request->get('vocabularyrestricted_' . $id));
|
$field->setVocabularyRestricted($request->request->get('vocabularyrestricted_' . $id));
|
||||||
} catch (\Exception $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -83,8 +83,10 @@ class DoDownload implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Prepare a set of documents for download
|
* Prepare a set of documents for download
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
|
* @param String $token
|
||||||
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function prepareDownload(Application $app, Request $request, $token)
|
public function prepareDownload(Application $app, Request $request, $token)
|
||||||
@@ -130,8 +132,10 @@ class DoDownload implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Download a set of documents
|
* Download a set of documents
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
|
* @param String $token
|
||||||
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function downloadDocuments(Application $app, Request $request, $token)
|
public function downloadDocuments(Application $app, Request $request, $token)
|
||||||
@@ -188,8 +192,10 @@ class DoDownload implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Build a zip of downloaded documents
|
* Build a zip of downloaded documents
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
|
* @param String $token
|
||||||
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function downloadExecute(Application $app, Request $request, $token)
|
public function downloadExecute(Application $app, Request $request, $token)
|
||||||
|
@@ -141,9 +141,9 @@ class Order implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Create a new order
|
* Create a new order
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param integer $order_id
|
*
|
||||||
* @return RedirectResponse|JsonResponse
|
* @return RedirectResponse|JsonResponse
|
||||||
*/
|
*/
|
||||||
public function createOrder(Application $app, Request $request)
|
public function createOrder(Application $app, Request $request)
|
||||||
@@ -218,9 +218,9 @@ class Order implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Display list of orders
|
* Display list of orders
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param integer $order_id
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function displayOrders(Application $app, Request $request)
|
public function displayOrders(Application $app, Request $request)
|
||||||
|
@@ -103,10 +103,9 @@ class Records implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Get record detailed view
|
* Get record detailed view
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param integer $sbas_id
|
*
|
||||||
* @param integer $record_id
|
|
||||||
* @return JsonResponse
|
* @return JsonResponse
|
||||||
*/
|
*/
|
||||||
public function getRecord(Application $app, Request $request)
|
public function getRecord(Application $app, Request $request)
|
||||||
@@ -258,10 +257,9 @@ class Records implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Renew url list of records
|
* Renew url list of records
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param integer $databox_id
|
*
|
||||||
* @param integer $record_id
|
|
||||||
* @return JsonResponse
|
* @return JsonResponse
|
||||||
*/
|
*/
|
||||||
public function renewUrl(Application $app, Request $request)
|
public function renewUrl(Application $app, Request $request)
|
||||||
|
@@ -392,8 +392,10 @@ class Account implements ControllerProviderInterface
|
|||||||
/**
|
/**
|
||||||
* Display authorized applications that can access user informations
|
* Display authorized applications that can access user informations
|
||||||
*
|
*
|
||||||
* @param Application $app A Silex application where the controller is mounted on
|
* @param Application $app A Silex application where the controller is mounted on
|
||||||
* @param Request $request The current request
|
* @param Request $request The current request
|
||||||
|
* @param Integer $application_id The application id
|
||||||
|
*
|
||||||
* @return JsonResponse
|
* @return JsonResponse
|
||||||
*/
|
*/
|
||||||
public function grantAccess(Application $app, Request $request, $application_id)
|
public function grantAccess(Application $app, Request $request, $application_id)
|
||||||
|
@@ -35,7 +35,9 @@ class Helper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Kernel $kernel
|
* @param Application $app
|
||||||
|
* @param Request $Request
|
||||||
|
*
|
||||||
* @return Helper
|
* @return Helper
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, Request $Request)
|
public function __construct(Application $app, Request $Request)
|
||||||
|
@@ -101,7 +101,9 @@ class Helper extends \Alchemy\Phrasea\Helper\Helper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
|
* @param Request $Request
|
||||||
|
*
|
||||||
* @return Helper
|
* @return Helper
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, Request $Request)
|
public function __construct(Application $app, Request $Request)
|
||||||
|
@@ -30,8 +30,10 @@ class Printer extends RecordHelper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @return Printer
|
* @param Request $Request
|
||||||
|
*
|
||||||
|
* @return Helper
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, Request $Request)
|
public function __construct(Application $app, Request $Request)
|
||||||
{
|
{
|
||||||
|
@@ -491,8 +491,13 @@ class SearchEngineOptions
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $serialized
|
* @param Application $app
|
||||||
|
* @param string $serialized
|
||||||
|
*
|
||||||
* @return SearchEngineOptions
|
* @return SearchEngineOptions
|
||||||
|
*
|
||||||
|
* @throws \InvalidArgumentException
|
||||||
|
* @throws \RuntimeException
|
||||||
*/
|
*/
|
||||||
public static function hydrate(Application $app, $serialized)
|
public static function hydrate(Application $app, $serialized)
|
||||||
{
|
{
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
namespace Alchemy\Phrasea\Vocabulary;
|
namespace Alchemy\Phrasea\Vocabulary;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
|
use Alchemy\Phrasea\Vocabulary\ControlProvider\ControlProviderInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vocabulary Controller
|
* Vocabulary Controller
|
||||||
@@ -23,20 +24,22 @@ use Alchemy\Phrasea\Application;
|
|||||||
*/
|
*/
|
||||||
class Controller
|
class Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory of ControlProvider
|
* Factory of ControlProvider
|
||||||
*
|
*
|
||||||
* @param string $type
|
* @param Application $app
|
||||||
* @return \Alchemy\Phrasea\Vocabulary\ControlProvider\ControlProviderInterface
|
* @param string $type
|
||||||
* @throws \Exception when ControlProvider is not found
|
*
|
||||||
|
* @return ControlProviderInterface
|
||||||
|
*
|
||||||
|
* @throws \InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
public static function get(Application $app, $type)
|
public static function get(Application $app, $type)
|
||||||
{
|
{
|
||||||
$classname = __NAMESPACE__ . '\\ControlProvider\\' . $type . 'Provider';
|
$classname = __NAMESPACE__ . '\\ControlProvider\\' . $type . 'Provider';
|
||||||
|
|
||||||
if ( ! class_exists($classname)) {
|
if ( ! class_exists($classname)) {
|
||||||
throw new \Exception('Vocabulary type not found');
|
throw new \InvalidArgumentException('Vocabulary type not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
return new $classname($app);
|
return new $classname($app);
|
||||||
|
@@ -106,8 +106,10 @@ class ACL implements cache_cacheableInterface
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param User_Interface $user
|
* @param User_Interface $user
|
||||||
* @return ACL
|
* @param Application $app
|
||||||
|
*
|
||||||
|
* @return \ACL
|
||||||
*/
|
*/
|
||||||
public function __construct(User_Interface $user, Application $app)
|
public function __construct(User_Interface $user, Application $app)
|
||||||
{
|
{
|
||||||
@@ -649,8 +651,9 @@ class ACL implements cache_cacheableInterface
|
|||||||
* Return an array of base_id which are granted, with
|
* Return an array of base_id which are granted, with
|
||||||
* optionnal filter by rights
|
* optionnal filter by rights
|
||||||
*
|
*
|
||||||
* @param Array $rights
|
* @param array $rights
|
||||||
* @return Array
|
* @param array|null $sbas_ids Optionnal sbas_id to restrict the query on
|
||||||
|
* @return array An array of collection
|
||||||
*/
|
*/
|
||||||
public function get_granted_base(Array $rights = array(), array $sbas_ids = null)
|
public function get_granted_base(Array $rights = array(), array $sbas_ids = null)
|
||||||
{
|
{
|
||||||
|
@@ -104,7 +104,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $scope
|
* @param string $error
|
||||||
* @return API_OAuth2_Exception_Exception
|
* @return API_OAuth2_Exception_Exception
|
||||||
*/
|
*/
|
||||||
public function setError($error)
|
public function setError($error)
|
||||||
@@ -125,7 +125,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $scope
|
* @param string $error_description
|
||||||
* @return API_OAuth2_Exception_Exception
|
* @return API_OAuth2_Exception_Exception
|
||||||
*/
|
*/
|
||||||
public function setError_description($error_description)
|
public function setError_description($error_description)
|
||||||
@@ -146,7 +146,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $scope
|
* @param string $error_uri
|
||||||
* @return API_OAuth2_Exception_Exception
|
* @return API_OAuth2_Exception_Exception
|
||||||
*/
|
*/
|
||||||
public function setError_uri($error_uri)
|
public function setError_uri($error_uri)
|
||||||
|
@@ -69,7 +69,7 @@ class API_OAuth2_Exception_Redirect extends API_OAuth2_Exception_Exception
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $redirect_uri
|
* @param string $state
|
||||||
* @return API_OAuth2_Exception_Redirect
|
* @return API_OAuth2_Exception_Redirect
|
||||||
*/
|
*/
|
||||||
public function setState($state)
|
public function setState($state)
|
||||||
|
@@ -268,8 +268,8 @@ class API_OAuth2_Token
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param appbox $appbox
|
* @param Application $app
|
||||||
* @param type $oauth_token
|
* @param string $oauth_token
|
||||||
* @return API_OAuth2_Token
|
* @return API_OAuth2_Token
|
||||||
*/
|
*/
|
||||||
public static function load_by_oauth_token(Application $app, $oauth_token)
|
public static function load_by_oauth_token(Application $app, $oauth_token)
|
||||||
|
@@ -6,7 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
|
|
||||||
class API_V1_Log
|
class API_V1_Log
|
||||||
{
|
{
|
||||||
@@ -83,9 +82,8 @@ class API_V1_Log
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param Request $request
|
* @param integer $log_id
|
||||||
* @param API_OAuth2_Account $account
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $log_id)
|
public function __construct(Application $app, $log_id)
|
||||||
{
|
{
|
||||||
|
@@ -55,8 +55,11 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve http status error code according to the message
|
* Retrieve http status error code according to the message
|
||||||
* @param Request $request
|
*
|
||||||
* @param string $error
|
* @param Request $request
|
||||||
|
* @param string $error
|
||||||
|
* @param string $message
|
||||||
|
*
|
||||||
* @return API_V1_result `
|
* @return API_V1_result `
|
||||||
*/
|
*/
|
||||||
public function get_error_message(Request $request, $error, $message)
|
public function get_error_message(Request $request, $error, $message)
|
||||||
@@ -120,7 +123,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get a list of phraseanet tasks
|
* Get a list of phraseanet tasks
|
||||||
*
|
*
|
||||||
* @param \Silex\Application $app The API silex application
|
* @param Application $app The API silex application
|
||||||
|
*
|
||||||
* @return \API_V1_result
|
* @return \API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_task_list(Application $app)
|
public function get_task_list(Application $app)
|
||||||
@@ -158,8 +162,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get informations about an identified task
|
* Get informations about an identified task
|
||||||
*
|
*
|
||||||
* @param \Silex\Application $app The API silex application
|
* @param \Silex\Application $app The API silex application
|
||||||
* @param integer $task_id
|
* @param integer $taskId
|
||||||
* @return \API_V1_result
|
* @return \API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_task(Application $app, $taskId)
|
public function get_task(Application $app, $taskId)
|
||||||
@@ -180,8 +184,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Start a specified task
|
* Start a specified task
|
||||||
*
|
*
|
||||||
* @param \Silex\Application $app The API silex application
|
* @param \Silex\Application $app The API silex application
|
||||||
* @param integer $task_id The task id
|
* @param integer $taskId The task id
|
||||||
* @return \API_V1_result
|
* @return \API_V1_result
|
||||||
*/
|
*/
|
||||||
public function start_task(Application $app, $taskId)
|
public function start_task(Application $app, $taskId)
|
||||||
@@ -203,8 +207,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Stop a specified task
|
* Stop a specified task
|
||||||
*
|
*
|
||||||
* @param \Silex\Application $app The API silex application
|
* @param \Silex\Application $app The API silex application
|
||||||
* @param integer $task_id The task id
|
* @param integer $taskId The task id
|
||||||
* @return \API_V1_result
|
* @return \API_V1_result
|
||||||
*/
|
*/
|
||||||
public function stop_task(Application $app, $taskId)
|
public function stop_task(Application $app, $taskId)
|
||||||
@@ -227,8 +231,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
* - name
|
* - name
|
||||||
* - autostart
|
* - autostart
|
||||||
*
|
*
|
||||||
* @param \Silex\Application $app Silex application
|
* @param \Silex\Application $app Silex application
|
||||||
* @param integer $task_id the task id
|
* @param integer $taskId the task id
|
||||||
* @return \API_V1_result
|
* @return \API_V1_result
|
||||||
* @throws \API_V1_exception_badrequest
|
* @throws \API_V1_exception_badrequest
|
||||||
*/
|
*/
|
||||||
@@ -509,8 +513,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the databoxes
|
* Get an API_V1_result containing the databoxes
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_databoxes(Request $request)
|
public function get_databoxes(Request $request)
|
||||||
@@ -525,9 +529,9 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the collections of a databox
|
* Get an API_V1_result containing the collections of a databox
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_databox_collections(Request $request, $databox_id)
|
public function get_databox_collections(Request $request, $databox_id)
|
||||||
@@ -548,9 +552,9 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the status of a databox
|
* Get an API_V1_result containing the status of a databox
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_databox_status(Request $request, $databox_id)
|
public function get_databox_status(Request $request, $databox_id)
|
||||||
@@ -572,9 +576,9 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the metadatas of a databox
|
* Get an API_V1_result containing the metadatas of a databox
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_databox_metadatas(Request $request, $databox_id)
|
public function get_databox_metadatas(Request $request, $databox_id)
|
||||||
@@ -597,9 +601,9 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the terms of use of a databox
|
* Get an API_V1_result containing the terms of use of a databox
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_databox_terms(Request $request, $databox_id)
|
public function get_databox_terms(Request $request, $databox_id)
|
||||||
@@ -857,9 +861,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
*
|
*
|
||||||
* Deprecated in favor of search
|
* Deprecated in favor of search
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
*
|
||||||
* @param string $response_type
|
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function search_records(Request $request)
|
public function search_records(Request $request)
|
||||||
@@ -924,10 +927,10 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the baskets where the record is in
|
* Get an API_V1_result containing the baskets where the record is in
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param int $record_id
|
* @param int $record_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_record_related(Request $request, $databox_id, $record_id)
|
public function get_record_related(Request $request, $databox_id, $record_id)
|
||||||
@@ -960,10 +963,10 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the record metadatas
|
* Get an API_V1_result containing the record metadatas
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param int $record_id
|
* @param int $record_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_record_metadatas(Request $request, $databox_id, $record_id)
|
public function get_record_metadatas(Request $request, $databox_id, $record_id)
|
||||||
@@ -984,10 +987,10 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the record status
|
* Get an API_V1_result containing the record status
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param int $record_id
|
* @param int $record_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_record_status(Request $request, $databox_id, $record_id)
|
public function get_record_status(Request $request, $databox_id, $record_id)
|
||||||
@@ -1014,10 +1017,10 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the record embed files
|
* Get an API_V1_result containing the record embed files
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param int $record_id
|
* @param int $record_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_record_embed(Request $request, $databox_id, $record_id)
|
public function get_record_embed(Request $request, $databox_id, $record_id)
|
||||||
@@ -1044,10 +1047,10 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Get an API_V1_result containing the story embed files
|
* Get an API_V1_result containing the story embed files
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $databox_id
|
* @param int $databox_id
|
||||||
* @param int $record_id
|
* @param int $record_id
|
||||||
* @param string $response_type
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function get_story_embed(Request $request, $databox_id, $record_id)
|
public function get_story_embed(Request $request, $databox_id, $record_id)
|
||||||
@@ -1483,8 +1486,6 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo
|
|
||||||
*
|
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $publication_id
|
* @param int $publication_id
|
||||||
*/
|
*/
|
||||||
@@ -1666,7 +1667,6 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo
|
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param int $usr_id
|
* @param int $usr_id
|
||||||
*/
|
*/
|
||||||
@@ -1878,10 +1878,11 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
/**
|
/**
|
||||||
* Retrieve detailled informations about one story
|
* Retrieve detailled informations about one story
|
||||||
*
|
*
|
||||||
* @param record_adapter $story
|
* @param record_adapter $story
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function list_story(record_adapter $story, $includeChildren = true)
|
public function list_story(record_adapter $story)
|
||||||
{
|
{
|
||||||
if (!$story->is_grouping()) {
|
if (!$story->is_grouping()) {
|
||||||
throw new \API_V1_exception_notfound('Story not found');
|
throw new \API_V1_exception_notfound('Story not found');
|
||||||
|
@@ -98,9 +98,9 @@ class API_V1_result
|
|||||||
/**
|
/**
|
||||||
* API v1 Result constructor
|
* API v1 Result constructor
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param API_V1_adapter $api
|
* @param API_V1_adapter $api
|
||||||
* @param string $response_type One of the API_V1_result 'FORMAT_*' constants
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function __construct(Request $request, API_V1_adapter $api)
|
public function __construct(Request $request, API_V1_adapter $api)
|
||||||
@@ -248,7 +248,9 @@ class API_V1_result
|
|||||||
* Set the API_V1_result http_code, error_type, error_message and error_details
|
* Set the API_V1_result http_code, error_type, error_message and error_details
|
||||||
* with the appropriate datas
|
* with the appropriate datas
|
||||||
*
|
*
|
||||||
* @param string $const
|
* @param string $const
|
||||||
|
* @param string $message
|
||||||
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function set_error_message($const, $message)
|
public function set_error_message($const, $message)
|
||||||
@@ -298,7 +300,8 @@ class API_V1_result
|
|||||||
* Set the API_V1_result http_code, error_message and error_details
|
* Set the API_V1_result http_code, error_message and error_details
|
||||||
* with the appropriate datas
|
* with the appropriate datas
|
||||||
*
|
*
|
||||||
* @param string $const
|
* @param integer $code
|
||||||
|
*
|
||||||
* @return API_V1_result
|
* @return API_V1_result
|
||||||
*/
|
*/
|
||||||
public function set_error_code($code)
|
public function set_error_code($code)
|
||||||
|
@@ -233,8 +233,8 @@ class Bridge_Account
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param appbox $appbox
|
* @param Application $app
|
||||||
* @param int $account_id
|
* @param integer $account_id
|
||||||
* @return Bridge_Account
|
* @return Bridge_Account
|
||||||
*/
|
*/
|
||||||
public static function load_account(Application $app, $account_id)
|
public static function load_account(Application $app, $account_id)
|
||||||
@@ -346,11 +346,12 @@ class Bridge_Account
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param appbox $appbox
|
* @param Application $app
|
||||||
* @param Bridge_Api $api
|
* @param Bridge_Api $api
|
||||||
* @param User_Adapter $user
|
* @param User_Adapter $user
|
||||||
* @param string $dist_id
|
* @param string $dist_id
|
||||||
* @param string $name
|
* @param string $name
|
||||||
|
*
|
||||||
* @return Bridge_Account
|
* @return Bridge_Account
|
||||||
*/
|
*/
|
||||||
public static function create(Application $app, Bridge_Api $api, User_Adapter $user, $dist_id, $name)
|
public static function create(Application $app, Bridge_Api $api, User_Adapter $user, $dist_id, $name)
|
||||||
|
@@ -199,7 +199,7 @@ class Bridge_Api
|
|||||||
*
|
*
|
||||||
* @param string $object
|
* @param string $object
|
||||||
* @param string $object_id
|
* @param string $object_id
|
||||||
* @param Request $request
|
* @param array $datas
|
||||||
* @return Bridge_Api_Interface
|
* @return Bridge_Api_Interface
|
||||||
*/
|
*/
|
||||||
public function update_element($object, $object_id, Array $datas)
|
public function update_element($object, $object_id, Array $datas)
|
||||||
@@ -316,7 +316,8 @@ class Bridge_Api
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $element_id
|
* @param Bridge_Element $element
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_element_status(Bridge_Element $element)
|
public function get_element_status(Bridge_Element $element)
|
||||||
|
@@ -347,9 +347,11 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @see http://www.dailymotion.com/doc/api/obj-video.html
|
* @see http://www.dailymotion.com/doc/api/obj-video.html
|
||||||
* @param string $object
|
*
|
||||||
* @param string $object_id
|
* @param string $object
|
||||||
* @param Request $request
|
* @param string $object_id
|
||||||
|
* @param array $datas
|
||||||
|
*
|
||||||
* @return Bridge_Api_Dailymotion
|
* @return Bridge_Api_Dailymotion
|
||||||
*/
|
*/
|
||||||
public function update_element($object, $object_id, Array $datas)
|
public function update_element($object, $object_id, Array $datas)
|
||||||
@@ -482,7 +484,8 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $element_id
|
* @param Bridge_Element $element
|
||||||
|
*
|
||||||
* @return Array
|
* @return Array
|
||||||
*/
|
*/
|
||||||
public function get_element_status(Bridge_Element $element)
|
public function get_element_status(Bridge_Element $element)
|
||||||
@@ -593,8 +596,9 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $object
|
* @param string $element_id
|
||||||
* @param string $element_id
|
* @param string $object
|
||||||
|
*
|
||||||
* @return Bridge_Api_Dailymotion_Element
|
* @return Bridge_Api_Dailymotion_Element
|
||||||
*/
|
*/
|
||||||
public function get_element_from_id($element_id, $object)
|
public function get_element_from_id($element_id, $object)
|
||||||
@@ -793,7 +797,7 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
|||||||
* @todo implement in bridge_api°interface
|
* @todo implement in bridge_api°interface
|
||||||
*
|
*
|
||||||
* Check if data uploaded via the current connector is conform
|
* Check if data uploaded via the current connector is conform
|
||||||
* @param Request $request
|
* @param array $datas
|
||||||
* @param record_adapter $record
|
* @param record_adapter $record
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
@@ -850,7 +854,10 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns dats needed for an uploaded record
|
* Returns dats needed for an uploaded record
|
||||||
* @param record_adapter $record
|
*
|
||||||
|
* @param Request $request
|
||||||
|
* @param record_adapter $record
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_upload_datas(Request $request, record_adapter $record)
|
public function get_upload_datas(Request $request, record_adapter $record)
|
||||||
@@ -868,7 +875,7 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns datas needed for an uploaded record
|
* Returns datas needed for an uploaded record
|
||||||
* @param record_adapter $record
|
* @param Request $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_update_datas(Request $request)
|
public function get_update_datas(Request $request)
|
||||||
|
@@ -33,8 +33,9 @@ class Bridge_Api_Dailymotion_Container implements Bridge_Api_ContainerInterface
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param array $entry
|
* @param array $entry
|
||||||
* @param type $type
|
* @param String $type
|
||||||
* @param type $thumbnail
|
* @param String $thumbnail
|
||||||
|
* @param String $url
|
||||||
* @return Bridge_Api_Dailymotion_Container
|
* @return Bridge_Api_Dailymotion_Container
|
||||||
*/
|
*/
|
||||||
public function __construct(Array $entry, $type, $thumbnail = '', $url = '')
|
public function __construct(Array $entry, $type, $thumbnail = '', $url = '')
|
||||||
|
@@ -261,10 +261,9 @@ class Bridge_Api_Flickr extends Bridge_Api_Abstract implements Bridge_Api_Interf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $object
|
* @param string $object
|
||||||
* @param string $object_id
|
* @param string $object_id
|
||||||
* @param Request $request
|
* @param array $datas
|
||||||
* @return Void
|
|
||||||
*/
|
*/
|
||||||
public function update_element($object, $object_id, Array $datas)
|
public function update_element($object, $object_id, Array $datas)
|
||||||
{
|
{
|
||||||
@@ -742,7 +741,9 @@ class Bridge_Api_Flickr extends Bridge_Api_Abstract implements Bridge_Api_Interf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns datas needed for an uploaded record
|
* Returns datas needed for an uploaded record
|
||||||
* @param record_adapter $record
|
*
|
||||||
|
* @param Request $request
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_update_datas(Request $request)
|
public function get_update_datas(Request $request)
|
||||||
@@ -757,7 +758,10 @@ class Bridge_Api_Flickr extends Bridge_Api_Abstract implements Bridge_Api_Interf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns datas needed for an uploaded record
|
* Returns datas needed for an uploaded record
|
||||||
* @param record_adapter $record
|
*
|
||||||
|
* @param Request $request
|
||||||
|
* @param record_adapter $record
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_upload_datas(Request $request, record_adapter $record)
|
public function get_upload_datas(Request $request, record_adapter $record)
|
||||||
|
@@ -33,9 +33,11 @@ class Bridge_Api_Flickr_Element implements Bridge_Api_ElementInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param SimpleXMLElement $entry
|
* @param SimpleXMLElement $entry
|
||||||
* @param string $user_id
|
* @param string $user_id
|
||||||
* @param string $type
|
* @param string $type
|
||||||
|
* @param Boolean $entry_from_list
|
||||||
|
*
|
||||||
* @return Bridge_Api_Flickr_Element
|
* @return Bridge_Api_Flickr_Element
|
||||||
*/
|
*/
|
||||||
public function __construct(SimpleXMLElement $entry, $user_id, $type, $entry_from_list = true)
|
public function __construct(SimpleXMLElement $entry, $user_id, $type, $entry_from_list = true)
|
||||||
|
@@ -292,7 +292,7 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
|||||||
*
|
*
|
||||||
* @param string $object
|
* @param string $object
|
||||||
* @param string $object_id
|
* @param string $object_id
|
||||||
* @param Request $request
|
* @param array $datas
|
||||||
* @return Bridge_Api_Youtube
|
* @return Bridge_Api_Youtube
|
||||||
*/
|
*/
|
||||||
public function update_element($object, $object_id, Array $datas)
|
public function update_element($object, $object_id, Array $datas)
|
||||||
@@ -435,7 +435,8 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $element_id
|
* @param Bridge_Element $element
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_element_status(Bridge_Element $element)
|
public function get_element_status(Bridge_Element $element)
|
||||||
@@ -697,8 +698,9 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $object
|
* @param string $element_id
|
||||||
* @param string $element_id
|
* @param string $object
|
||||||
|
*
|
||||||
* @return Bridge_Api_Youtube_Element
|
* @return Bridge_Api_Youtube_Element
|
||||||
*/
|
*/
|
||||||
public function get_element_from_id($element_id, $object)
|
public function get_element_from_id($element_id, $object)
|
||||||
@@ -899,10 +901,11 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* Check if data uploaded via the current connector is conform
|
* Check if data uploaded via the current connector is conform
|
||||||
* @param Request $request
|
*
|
||||||
* @param record_adapter $record
|
* @param array $datas
|
||||||
|
* @param record_adapter $record
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function check_upload_constraints(Array $datas, record_adapter $record)
|
public function check_upload_constraints(Array $datas, record_adapter $record)
|
||||||
@@ -961,7 +964,9 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns datas needed for an uploaded record
|
* Returns datas needed for an uploaded record
|
||||||
* @param record_adapter $record
|
*
|
||||||
|
* @param Request $request
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_update_datas(Request $request)
|
public function get_update_datas(Request $request)
|
||||||
@@ -979,7 +984,10 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns datas needed for an uploaded record
|
* Returns datas needed for an uploaded record
|
||||||
* @param record_adapter $record
|
*
|
||||||
|
* @param Request $request
|
||||||
|
* @param record_adapter $record
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_upload_datas(Request $request, record_adapter $record)
|
public function get_upload_datas(Request $request, record_adapter $record)
|
||||||
|
@@ -16,8 +16,9 @@ class DailymotionWithoutOauth2 extends Dailymotion
|
|||||||
/**
|
/**
|
||||||
* Call a remote method.
|
* Call a remote method.
|
||||||
*
|
*
|
||||||
* @param $method String the method name to call.
|
* @param String $method the method name to call.
|
||||||
* @param $args Array an associative array of arguments.
|
* @param Array $args an associative array of arguments.
|
||||||
|
* @param String $access_token
|
||||||
*
|
*
|
||||||
* @return mixed the method response
|
* @return mixed the method response
|
||||||
*
|
*
|
||||||
@@ -69,7 +70,8 @@ class DailymotionWithoutOauth2 extends Dailymotion
|
|||||||
/**
|
/**
|
||||||
* Upload a file on the Dailymotion servers and generate an URL to be used with API methods.
|
* Upload a file on the Dailymotion servers and generate an URL to be used with API methods.
|
||||||
*
|
*
|
||||||
* @param $filePath String a path to the file to upload
|
* @param String $filePath a path to the file to upload
|
||||||
|
* @param String $oauth_token a path to the file to upload
|
||||||
*
|
*
|
||||||
* @return String the resulting URL
|
* @return String the resulting URL
|
||||||
*/
|
*/
|
||||||
|
@@ -51,9 +51,10 @@ class Feed_Token
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param appbox $appbox
|
* @param Application $app
|
||||||
* @param string $token
|
* @param string $token
|
||||||
* @param int $feed_id
|
* @param int $feed_id
|
||||||
|
*
|
||||||
* @return Feed_Token
|
* @return Feed_Token
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $token, $feed_id)
|
public function __construct(Application $app, $token, $feed_id)
|
||||||
|
@@ -166,7 +166,7 @@ class Feed_XML_Atom extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $author_name
|
* @param string $author_email
|
||||||
* @return Feed_XML_Atom
|
* @return Feed_XML_Atom
|
||||||
*/
|
*/
|
||||||
public function set_author_email($author_email)
|
public function set_author_email($author_email)
|
||||||
@@ -179,7 +179,7 @@ class Feed_XML_Atom extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $author_name
|
* @param string $author_url
|
||||||
* @return Feed_XML_Atom
|
* @return Feed_XML_Atom
|
||||||
*/
|
*/
|
||||||
public function set_author_url($author_url)
|
public function set_author_url($author_url)
|
||||||
|
@@ -114,7 +114,7 @@ class Feed_XML_Cooliris extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $language
|
* @param string $copyright
|
||||||
* @return Feed_XML_RSS
|
* @return Feed_XML_RSS
|
||||||
*/
|
*/
|
||||||
public function set_copyright($copyright)
|
public function set_copyright($copyright)
|
||||||
@@ -210,7 +210,7 @@ class Feed_XML_Cooliris extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $skipHours
|
* @param string $hour
|
||||||
* @return Feed_XML_RSS
|
* @return Feed_XML_RSS
|
||||||
*/
|
*/
|
||||||
public function set_skipHour($hour)
|
public function set_skipHour($hour)
|
||||||
@@ -222,7 +222,7 @@ class Feed_XML_Cooliris extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $skipDays
|
* @param string $day
|
||||||
* @return Feed_XML_RSS
|
* @return Feed_XML_RSS
|
||||||
*/
|
*/
|
||||||
public function set_skipDays($day)
|
public function set_skipDays($day)
|
||||||
|
@@ -114,7 +114,7 @@ class Feed_XML_RSS extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $language
|
* @param string $copyright
|
||||||
* @return Feed_XML_RSS
|
* @return Feed_XML_RSS
|
||||||
*/
|
*/
|
||||||
public function set_copyright($copyright)
|
public function set_copyright($copyright)
|
||||||
@@ -210,7 +210,7 @@ class Feed_XML_RSS extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $skipHours
|
* @param string $hour
|
||||||
* @return Feed_XML_RSS
|
* @return Feed_XML_RSS
|
||||||
*/
|
*/
|
||||||
public function set_skipHour($hour)
|
public function set_skipHour($hour)
|
||||||
@@ -222,7 +222,7 @@ class Feed_XML_RSS extends Feed_XML_Abstract implements Feed_XML_Interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $skipDays
|
* @param string $day
|
||||||
* @return Feed_XML_RSS
|
* @return Feed_XML_RSS
|
||||||
*/
|
*/
|
||||||
public function set_skipDays($day)
|
public function set_skipDays($day)
|
||||||
|
@@ -46,8 +46,10 @@ class Session_Logger
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param databox $databox
|
* @param Application $app
|
||||||
* @param int $log_id
|
* @param databox $databox
|
||||||
|
* @param integer $log_id
|
||||||
|
*
|
||||||
* @return Session_Logger
|
* @return Session_Logger
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, databox $databox, $log_id)
|
public function __construct(Application $app, databox $databox, $log_id)
|
||||||
@@ -92,9 +94,10 @@ class Session_Logger
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param databox $databox
|
* @param Application $app
|
||||||
* @param User_Adapter $user
|
* @param databox $databox
|
||||||
* @param Browser $browser
|
* @param Browser $browser
|
||||||
|
*
|
||||||
* @return Session_Logger
|
* @return Session_Logger
|
||||||
*/
|
*/
|
||||||
public static function create(Application $app, databox $databox, Browser $browser)
|
public static function create(Application $app, databox $databox, Browser $browser)
|
||||||
|
@@ -315,8 +315,9 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param type $id
|
* @param Integer $id
|
||||||
* @param appbox $appbox
|
* @param Application $app
|
||||||
|
*
|
||||||
* @return User_Adapter
|
* @return User_Adapter
|
||||||
*/
|
*/
|
||||||
public function __construct($id, Application $app)
|
public function __construct($id, Application $app)
|
||||||
@@ -480,7 +481,9 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
|||||||
/**
|
/**
|
||||||
* Query in the cache
|
* Query in the cache
|
||||||
*
|
*
|
||||||
* @param unknown_type $query
|
* @param Application $app
|
||||||
|
* @param string $query
|
||||||
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public static function saveQuery(Application $app, $query)
|
public static function saveQuery(Application $app, $query)
|
||||||
@@ -520,8 +523,10 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $login
|
* @param Application $app
|
||||||
* @return int
|
* @param string $login
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public static function get_usr_id_from_login(Application $app, $login)
|
public static function get_usr_id_from_login(Application $app, $login)
|
||||||
{
|
{
|
||||||
|
@@ -104,6 +104,8 @@ class ZipArchiveImproved extends ZipArchive
|
|||||||
*
|
*
|
||||||
* @param string $fileName the path to file to be added to archive
|
* @param string $fileName the path to file to be added to archive
|
||||||
* @param string [optional] $localname the name of the file in the ZIP archive
|
* @param string [optional] $localname the name of the file in the ZIP archive
|
||||||
|
* @param integer $start
|
||||||
|
* @param integer $length
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function addFile($fileName, $localname = null, $start = 0, $length = 0)
|
public function addFile($fileName, $localname = null, $start = 0, $length = 0)
|
||||||
|
@@ -61,7 +61,9 @@ class appbox_register
|
|||||||
* Return an array of collection objects where provided
|
* Return an array of collection objects where provided
|
||||||
* user is waiting for approbation
|
* user is waiting for approbation
|
||||||
*
|
*
|
||||||
* @param User_Interface $user
|
* @param Application $app
|
||||||
|
* @param User_Interface $user
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_collection_awaiting_for_user(Application $app, User_Interface $user)
|
public function get_collection_awaiting_for_user(Application $app, User_Interface $user)
|
||||||
|
12
lib/classes/cache/databox.php
vendored
12
lib/classes/cache/databox.php
vendored
@@ -22,8 +22,9 @@ class cache_databox
|
|||||||
protected static $refreshing = false;
|
protected static $refreshing = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Application $app
|
||||||
|
* @param int $sbas_id
|
||||||
*
|
*
|
||||||
* @param int $sbas_id
|
|
||||||
* @return cache_databox
|
* @return cache_databox
|
||||||
*/
|
*/
|
||||||
public static function refresh(Application $app, $sbas_id)
|
public static function refresh(Application $app, $sbas_id)
|
||||||
@@ -142,11 +143,10 @@ class cache_databox
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @param Application $app
|
||||||
* @param int $sbas_id
|
* @param int $sbas_id
|
||||||
* @param string $type
|
* @param string $type
|
||||||
* @param mixed content $value
|
* @param mixed content $value
|
||||||
* @return Void
|
|
||||||
*/
|
*/
|
||||||
public static function update(Application $app, $sbas_id, $type, $value = '')
|
public static function update(Application $app, $sbas_id, $type, $value = '')
|
||||||
{
|
{
|
||||||
|
@@ -60,6 +60,7 @@ class caption_Field_Value implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @param Application $app
|
||||||
* @param databox_field $databox_field
|
* @param databox_field $databox_field
|
||||||
* @param record_adapter $record
|
* @param record_adapter $record
|
||||||
* @param type $id
|
* @param type $id
|
||||||
@@ -85,7 +86,7 @@ class caption_Field_Value implements cache_cacheableInterface
|
|||||||
$this->VocabularyId = $datas['vocabularyId'];
|
$this->VocabularyId = $datas['vocabularyId'];
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
} catch (\Exception $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,7 +105,7 @@ class caption_Field_Value implements cache_cacheableInterface
|
|||||||
try {
|
try {
|
||||||
$this->VocabularyType = $row['VocabularyType'] ? Vocabulary\Controller::get($this->app, $row['VocabularyType']) : null;
|
$this->VocabularyType = $row['VocabularyType'] ? Vocabulary\Controller::get($this->app, $row['VocabularyType']) : null;
|
||||||
$this->VocabularyId = $row['VocabularyId'];
|
$this->VocabularyId = $row['VocabularyId'];
|
||||||
} catch (\Exception $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -42,9 +42,10 @@ class caption_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param databox_field $databox_field
|
* @param Application $app
|
||||||
* @param record_Interface $record
|
* @param databox_field $databox_field
|
||||||
* @param int $id
|
* @param record_Interface $record
|
||||||
|
*
|
||||||
* @return caption_field
|
* @return caption_field
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, databox_field $databox_field, record_Interface $record)
|
public function __construct(Application $app, databox_field $databox_field, record_Interface $record)
|
||||||
@@ -197,8 +198,9 @@ class caption_field implements cache_cacheableInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param String $custom_separator
|
||||||
|
* @param Boolean $highlightTheso
|
||||||
*
|
*
|
||||||
* @param string $custom_separator
|
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function get_serialized_values($custom_separator = false, $highlightTheso = false)
|
public function get_serialized_values($custom_separator = false, $highlightTheso = false)
|
||||||
|
@@ -46,8 +46,10 @@ class caption_record implements caption_interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param record_Interface $record
|
* @param Application $app
|
||||||
* @param databox $databox
|
* @param record_Interface $record
|
||||||
|
* @param databox $databox
|
||||||
|
*
|
||||||
* @return caption_record
|
* @return caption_record
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, record_Interface $record, databox $databox)
|
public function __construct(Application $app, record_Interface $record, databox $databox)
|
||||||
@@ -177,7 +179,9 @@ class caption_record implements caption_interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param array $grep_fields
|
* @param array $grep_fields
|
||||||
|
* @param Boolean $IncludeBusiness
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_fields(Array $grep_fields = null, $IncludeBusiness = false)
|
public function get_fields(Array $grep_fields = null, $IncludeBusiness = false)
|
||||||
@@ -233,9 +237,11 @@ class caption_record implements caption_interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $highlight
|
* @param string $highlight
|
||||||
* @param array $grep_fields
|
* @param array $grep_fields
|
||||||
* @param SearchEngineInterface $searchEngine
|
* @param SearchEngineInterface $searchEngine
|
||||||
|
* @param Boolean $includeBusiness
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_highlight_fields($highlight = '', Array $grep_fields = null, SearchEngineInterface $searchEngine = null, $includeBusiness = false)
|
public function get_highlight_fields($highlight = '', Array $grep_fields = null, SearchEngineInterface $searchEngine = null, $includeBusiness = false)
|
||||||
|
@@ -362,7 +362,8 @@ class collection implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $base_id
|
* @param Application $app
|
||||||
|
* @param int $base_id
|
||||||
* @return collection
|
* @return collection
|
||||||
*/
|
*/
|
||||||
public static function get_from_base_id(Application $app, $base_id)
|
public static function get_from_base_id(Application $app, $base_id)
|
||||||
@@ -379,8 +380,9 @@ class collection implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $sbas_id
|
* @param Application $app
|
||||||
* @param int $coll_id
|
* @param databox $databox
|
||||||
|
* @param int $coll_id
|
||||||
* @return collection
|
* @return collection
|
||||||
*/
|
*/
|
||||||
public static function get_from_coll_id(Application $app, databox $databox, $coll_id)
|
public static function get_from_coll_id(Application $app, databox $databox, $coll_id)
|
||||||
|
@@ -105,7 +105,9 @@ class connection
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param Application $app
|
||||||
|
* @param string $name
|
||||||
|
*
|
||||||
* @return connection_pdo
|
* @return connection_pdo
|
||||||
*/
|
*/
|
||||||
public static function getPDOConnection(Application $app, $name = null)
|
public static function getPDOConnection(Application $app, $name = null)
|
||||||
|
@@ -21,13 +21,15 @@ class connection_pdo extends connection_abstract implements connection_interface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $hostname
|
* @param string $hostname
|
||||||
* @param int $port
|
* @param int $port
|
||||||
* @param string $user
|
* @param string $user
|
||||||
* @param string $passwd
|
* @param string $passwd
|
||||||
* @param string $dbname
|
* @param string $dbname
|
||||||
* @param array $options
|
* @param array $options
|
||||||
|
* @param Boolean $debug
|
||||||
|
*
|
||||||
* @return connection_pdo
|
* @return connection_pdo
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $hostname, $port, $user, $passwd, $dbname = false, $options = array(), $debug = false)
|
public function __construct($name, $hostname, $port, $user, $passwd, $dbname = false, $options = array(), $debug = false)
|
||||||
|
@@ -469,12 +469,13 @@ class databox extends base
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $host
|
* @param Application $app
|
||||||
* @param int $port
|
* @param string $host
|
||||||
* @param string $user
|
* @param int $port
|
||||||
* @param string $password
|
* @param string $user
|
||||||
* @param string $dbname
|
* @param string $password
|
||||||
* @param registry $registry
|
* @param string $dbname
|
||||||
|
* @param registry $registry
|
||||||
* @return databox
|
* @return databox
|
||||||
*/
|
*/
|
||||||
public static function mount(Application $app, $host, $port, $user, $password, $dbname, registry $registry)
|
public static function mount(Application $app, $host, $port, $user, $password, $dbname, registry $registry)
|
||||||
@@ -962,8 +963,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param <type> $sbas_id
|
|
||||||
* @return DOMDocument
|
* @return DOMDocument
|
||||||
*/
|
*/
|
||||||
public function get_dom_thesaurus()
|
public function get_dom_thesaurus()
|
||||||
@@ -988,8 +987,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param <type> $sbas_id
|
|
||||||
* @return DOMXpath
|
* @return DOMXpath
|
||||||
*/
|
*/
|
||||||
public function get_xpath_thesaurus()
|
public function get_xpath_thesaurus()
|
||||||
@@ -1010,8 +1007,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param int $sbas_id
|
|
||||||
* @return SimpleXMLElement
|
* @return SimpleXMLElement
|
||||||
*/
|
*/
|
||||||
public function get_sxml_thesaurus()
|
public function get_sxml_thesaurus()
|
||||||
@@ -1032,8 +1027,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param int $sbas_id
|
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_thesaurus()
|
public function get_thesaurus()
|
||||||
@@ -1063,7 +1056,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_structure()
|
public function get_structure()
|
||||||
@@ -1123,8 +1115,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param <type> $sbas_id
|
|
||||||
* @return DOMDocument
|
* @return DOMDocument
|
||||||
*/
|
*/
|
||||||
public function get_dom_structure()
|
public function get_dom_structure()
|
||||||
@@ -1150,8 +1140,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param <type> $sbas_id
|
|
||||||
* @return DOMDocument
|
* @return DOMDocument
|
||||||
*/
|
*/
|
||||||
public function get_dom_cterms()
|
public function get_dom_cterms()
|
||||||
@@ -1197,8 +1185,6 @@ class databox extends base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param <type> $sbas_id
|
|
||||||
* @return DOMXpath
|
* @return DOMXpath
|
||||||
*/
|
*/
|
||||||
public function get_xpath_structure()
|
public function get_xpath_structure()
|
||||||
|
@@ -199,7 +199,7 @@ class databox_field implements cache_cacheableInterface
|
|||||||
try {
|
try {
|
||||||
$this->Vocabulary = Vocabulary\Controller::get($this->app, $row['VocabularyControlType']);
|
$this->Vocabulary = Vocabulary\Controller::get($this->app, $row['VocabularyControlType']);
|
||||||
$this->VocabularyRestriction = ! ! $row['RestrictToVocabularyControl'];
|
$this->VocabularyRestriction = ! ! $row['RestrictToVocabularyControl'];
|
||||||
} catch (Exception $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,8 +244,10 @@ class databox_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \databox $databox
|
* @param Application $app
|
||||||
* @param int $id
|
* @param \databox $databox
|
||||||
|
* @param int $id
|
||||||
|
*
|
||||||
* @return \databox_field
|
* @return \databox_field
|
||||||
*/
|
*/
|
||||||
public static function get_instance(Application $app, databox $databox, $id)
|
public static function get_instance(Application $app, databox $databox, $id)
|
||||||
@@ -562,7 +564,8 @@ class databox_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param boolean $bool
|
* @param boolean $readonly
|
||||||
|
*
|
||||||
* @return databox_field
|
* @return databox_field
|
||||||
*/
|
*/
|
||||||
public function set_readonly($readonly)
|
public function set_readonly($readonly)
|
||||||
@@ -590,7 +593,7 @@ class databox_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param boolean $bool
|
* @param boolean $required
|
||||||
* @return databox_field
|
* @return databox_field
|
||||||
*/
|
*/
|
||||||
public function set_required($required)
|
public function set_required($required)
|
||||||
@@ -602,7 +605,7 @@ class databox_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param boolean $bool
|
* @param boolean $report
|
||||||
* @return databox_field
|
* @return databox_field
|
||||||
*/
|
*/
|
||||||
public function set_report($report)
|
public function set_report($report)
|
||||||
@@ -626,7 +629,7 @@ class databox_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $type
|
* @param string $branch
|
||||||
* @return databox_field
|
* @return databox_field
|
||||||
*/
|
*/
|
||||||
public function set_tbranch($branch)
|
public function set_tbranch($branch)
|
||||||
@@ -638,7 +641,7 @@ class databox_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $type
|
* @param string $separator
|
||||||
* @return databox_field
|
* @return databox_field
|
||||||
*/
|
*/
|
||||||
public function set_separator($separator)
|
public function set_separator($separator)
|
||||||
@@ -670,7 +673,7 @@ class databox_field implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $type
|
* @param string $value
|
||||||
* @return databox_field
|
* @return databox_field
|
||||||
*/
|
*/
|
||||||
public function set_thumbtitle($value)
|
public function set_thumbtitle($value)
|
||||||
|
@@ -58,7 +58,9 @@ class databox_subdef
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param SimpleXMLElement $sd
|
* @param SubdefType $type
|
||||||
|
* @param SimpleXMLElement $sd
|
||||||
|
*
|
||||||
* @return databox_subdef
|
* @return databox_subdef
|
||||||
*/
|
*/
|
||||||
public function __construct(SubdefType $type, SimpleXMLElement $sd)
|
public function __construct(SubdefType $type, SimpleXMLElement $sd)
|
||||||
|
@@ -177,7 +177,7 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $group
|
* @param string $groupname
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $class
|
* @param string $class
|
||||||
* @return databox_subdefsStructure
|
* @return databox_subdefsStructure
|
||||||
|
@@ -184,9 +184,9 @@ class eventsmanager_notify_autoregister extends eventsmanager_notifyAbstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Array $to
|
* @param \User_Adapter $to
|
||||||
* @param Array $from
|
* @param \User_Adapter $registeredUser
|
||||||
* @param Array $datas
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function mail(\User_Adapter $to, \User_Adapter $registeredUser)
|
public function mail(\User_Adapter $to, \User_Adapter $registeredUser)
|
||||||
|
@@ -299,6 +299,7 @@ class media_Permalink_Adapter implements media_Permalink_Interface, cache_cachea
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @param Application $app
|
||||||
* @param databox $databox
|
* @param databox $databox
|
||||||
* @param media_subdef $media_subdef
|
* @param media_subdef $media_subdef
|
||||||
* @return media_Permalink_Adapter
|
* @return media_Permalink_Adapter
|
||||||
@@ -316,6 +317,7 @@ class media_Permalink_Adapter implements media_Permalink_Interface, cache_cachea
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @param Application $app
|
||||||
* @param databox $databox
|
* @param databox $databox
|
||||||
* @param media_subdef $media_subdef
|
* @param media_subdef $media_subdef
|
||||||
* @return media_Permalink_Adapter
|
* @return media_Permalink_Adapter
|
||||||
@@ -345,6 +347,7 @@ class media_Permalink_Adapter implements media_Permalink_Interface, cache_cachea
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @param Application $app
|
||||||
* @param databox $databox
|
* @param databox $databox
|
||||||
* @param string $token
|
* @param string $token
|
||||||
* @param int $record_id
|
* @param int $record_id
|
||||||
|
@@ -138,9 +138,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
|
|||||||
const TC_DATA_LIGHTVALUE = 'LightValue';
|
const TC_DATA_LIGHTVALUE = 'LightValue';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo the presence of file is checked on constructor, it would be better
|
* @param Application $app
|
||||||
* to check it when needed (stop disk access)
|
|
||||||
*
|
|
||||||
* @param record_adapter $record
|
* @param record_adapter $record
|
||||||
* @param type $name
|
* @param type $name
|
||||||
* @param type $substitute
|
* @param type $substitute
|
||||||
@@ -541,8 +539,10 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param registryInterface $registry
|
* @param int $angle
|
||||||
* @param int $angle
|
* @param Alchemyst $alchemyst
|
||||||
|
* @param MediaVorus $mediavorus
|
||||||
|
*
|
||||||
* @return media_subdef
|
* @return media_subdef
|
||||||
*/
|
*/
|
||||||
public function rotate($angle, Alchemyst $alchemyst, MediaVorus $mediavorus)
|
public function rotate($angle, Alchemyst $alchemyst, MediaVorus $mediavorus)
|
||||||
|
@@ -244,11 +244,11 @@ class module_report
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
*
|
* @param Application $app
|
||||||
* @name report::__construct()
|
* @param string $d1 the minimal date of the report
|
||||||
* @param $arg1 the minimal date of the report
|
* @param string $d2 the maximal date of the report
|
||||||
* @param $arg2 the maximal date of the report
|
* @param integer $sbas_id the id of the base where we want to connect
|
||||||
* @param $sbas_id the id of the base where we want to connect
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $d1, $d2, $sbas_id, $collist)
|
public function __construct(Application $app, $d1, $d2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
@@ -810,10 +810,14 @@ class module_report
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc build the final formated array which contains all the result,
|
* Build the final formated array which contains all the result,
|
||||||
* we construct the html code from this array
|
* we construct the html code from this array
|
||||||
* @param array $tab pass the configcolumn parameter to this tab
|
*
|
||||||
* @return the formated array
|
* @param array $tab pass the configcolumn parameter to this tab
|
||||||
|
* @param array $groupby
|
||||||
|
* @param array $on
|
||||||
|
*
|
||||||
|
* @return the formated array
|
||||||
*/
|
*/
|
||||||
public function buildReport($tab = false, $groupby = false, $on = false)
|
public function buildReport($tab = false, $groupby = false, $on = false)
|
||||||
{
|
{
|
||||||
|
@@ -153,8 +153,10 @@ class module_report_activity extends module_report
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc get all questions by user
|
* Get all questions by user
|
||||||
* @param string $idUser
|
*
|
||||||
|
* @param string $value
|
||||||
|
* @param string $what
|
||||||
*/
|
*/
|
||||||
public function getAllQuestionByUser($value, $what)
|
public function getAllQuestionByUser($value, $what)
|
||||||
{
|
{
|
||||||
@@ -545,9 +547,11 @@ class module_report_activity extends module_report
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc get the deail of download by users
|
* Get the deail of download by users
|
||||||
* @param bool $ext false for your appbox conn, true for external connections
|
*
|
||||||
* @param array $tab config for the html table
|
* @param array $tab config for the html table
|
||||||
|
* @param String $on
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDetailDownload($tab = false, $on = "")
|
public function getDetailDownload($tab = false, $on = "")
|
||||||
|
@@ -40,10 +40,11 @@ class module_report_add extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name download::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id id of the databox
|
* @param integer $sbas_id id of the databox
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
|
@@ -37,10 +37,11 @@ class module_report_connexion extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name connexion::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id id of the databox
|
* @param integer $sbas_id id of the databox
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
|
@@ -70,10 +70,12 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
|
|||||||
private $app;
|
private $app;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc Construit un dashboard selon les droits du usrid, si sbas vaut null
|
* Construit un dashboard selon les droits du usrid, si sbas vaut null
|
||||||
* c'est un report sur toutes les bases, sinon sur le sbasid
|
* c'est un report sur toutes les bases, sinon sur le sbasid
|
||||||
* @param <int> $usrid
|
*
|
||||||
* @param <int> $sbasid
|
* @param Application $app
|
||||||
|
* @param integer $usr
|
||||||
|
* @param integer $sbasid
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $usr, $sbasid = null)
|
public function __construct(Application $app, $usr, $sbasid = null)
|
||||||
{
|
{
|
||||||
@@ -289,8 +291,10 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc la liste des base authorisee sous forme de string
|
* La liste des base authorisee sous forme de string
|
||||||
* @param <string> $separotor
|
*
|
||||||
|
* @param string $separator
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getListeBase($separator)
|
public function getListeBase($separator)
|
||||||
|
@@ -64,13 +64,14 @@ class module_report_dashboard_feed implements module_report_dashboard_componentI
|
|||||||
private $app;
|
private $app;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc return l'objet stockee dans le cache si i l existe sinon instancie
|
* return l'objet stockee dans le cache si i l existe sinon instancie
|
||||||
* un nouveau objet dashboard_feed
|
* un nouveau objet dashboard_feed
|
||||||
* @param <int> $sbasid
|
*
|
||||||
* @param <string> $sbas_coll
|
* @param Application $app
|
||||||
* @param <string> $dmin
|
* @param integer $sbasid
|
||||||
* @param <string> $dmax
|
* @param string $sbas_coll
|
||||||
* @return self
|
* @param mixed $dmin
|
||||||
|
* @param mixed $dmax
|
||||||
*/
|
*/
|
||||||
public static function getInstance(Application $app, $sbasid, $sbas_coll, $dmin, $dmax)
|
public static function getInstance(Application $app, $sbasid, $sbas_coll, $dmin, $dmax)
|
||||||
{
|
{
|
||||||
@@ -90,12 +91,13 @@ class module_report_dashboard_feed implements module_report_dashboard_componentI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc Remplis les resultats bruts pour valeures passees en param
|
* Remplis les resultats bruts pour valeures passees en param
|
||||||
* @param <int> $sbasid
|
*
|
||||||
* @param <string> $sbas_collection, les collection sous forme de string
|
* @param Application $app
|
||||||
* séparés par une virgule
|
* @param integer $sbasid
|
||||||
* @param <string> $dmin, Y-m-d
|
* @param string $sbas_collection les collection sous forme de string séparés par une virgule
|
||||||
* @param <string> $dmax, Y-m-d
|
* @param string $dmin Y-m-d
|
||||||
|
* @param string $dmax Y-m-d
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $sbasid, $sbas_collection, $dmin, $dmax)
|
public function __construct(Application $app, $sbasid, $sbas_collection, $dmin, $dmax)
|
||||||
{
|
{
|
||||||
|
@@ -42,10 +42,11 @@ class module_report_download extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name download::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id id of the databox
|
* @param integer $sbas_id id of the databox
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
|
@@ -40,10 +40,11 @@ class module_report_edit extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name download::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id id of the databox
|
* @param integer $sbas_id id of the databox
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
|
@@ -46,10 +46,11 @@ class module_report_nav extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name nav::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id databox id
|
* @param integer $sbas_id databox id
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
@@ -435,13 +436,6 @@ class module_report_nav extends module_report
|
|||||||
return $this->report;
|
return $this->report;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @desc report basic user informations
|
|
||||||
* @param int $val user id
|
|
||||||
* @param array $tab config for the html table
|
|
||||||
* @param string $on the field
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function buildTabGrpInfo($req, array $params, $val, $tab = false, $on = false)
|
public function buildTabGrpInfo($req, array $params, $val, $tab = false, $on = false)
|
||||||
{
|
{
|
||||||
$this->initialize();
|
$this->initialize();
|
||||||
@@ -525,11 +519,12 @@ class module_report_nav extends module_report
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc return basic information about a record
|
* Return basic information about a record
|
||||||
* @param $ses session id
|
*
|
||||||
* @param $bid base id
|
* @param integer $bid base id
|
||||||
* @param $rid record id
|
* @param integer $rid record id
|
||||||
* @param $tab config for the html table
|
* @param array $tab config for the html table
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function buildTabUserWhat($bid, $rid, $tab = false)
|
public function buildTabUserWhat($bid, $rid, $tab = false)
|
||||||
|
@@ -40,10 +40,11 @@ class module_report_push extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name download::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id id of the databox
|
* @param integer $sbas_id id of the databox
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
|
@@ -38,10 +38,11 @@ class module_report_question extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name download::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id id of the databox
|
* @param integer $sbas_id id of the databox
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
|
@@ -40,10 +40,11 @@ class module_report_validate extends module_report
|
|||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @name download::__construct()
|
* @param Application $app
|
||||||
* @param $arg1 start date of the report
|
* @param string $arg1 start date of the report
|
||||||
* @param $arg2 end date of the report
|
* @param string $arg2 end date of the report
|
||||||
* @param $sbas_id id of the databox
|
* @param integer $sbas_id id of the databox
|
||||||
|
* @param string $collist
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
public function __construct(Application $app, $arg1, $arg2, $sbas_id, $collist)
|
||||||
{
|
{
|
||||||
|
@@ -83,7 +83,7 @@ class p4string
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* deprecated
|
||||||
*
|
*
|
||||||
* @param type $s
|
* @param type $s
|
||||||
* @return type
|
* @return type
|
||||||
@@ -94,12 +94,11 @@ class p4string
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* deprecated
|
||||||
*
|
*
|
||||||
* @param type $s
|
* @param string $s
|
||||||
* @param type $context
|
* @param string $context
|
||||||
* @param type $quoted
|
* @param string $quoted
|
||||||
* @return type
|
|
||||||
*/
|
*/
|
||||||
public static function MakeString($s, $context = 'html', $quoted = '')
|
public static function MakeString($s, $context = 'html', $quoted = '')
|
||||||
{
|
{
|
||||||
|
@@ -57,7 +57,9 @@ class patch_370a8 implements patchInterface
|
|||||||
* transform tasks 'workflow 01' to 'RecordMover'
|
* transform tasks 'workflow 01' to 'RecordMover'
|
||||||
* will group tasks(01) with same period to a single task(02)
|
* will group tasks(01) with same period to a single task(02)
|
||||||
*
|
*
|
||||||
* @param base $appbox
|
* @param base $appbox
|
||||||
|
* @param Application $app
|
||||||
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function apply(base $appbox, Application $app)
|
public function apply(base $appbox, Application $app)
|
||||||
|
@@ -56,7 +56,9 @@ class patch_370a9 implements patchInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add new border manager service to services.yml & config.yml configuration files
|
* Add new border manager service to services.yml & config.yml configuration files
|
||||||
* @param base $appbox
|
*
|
||||||
|
* @param base $appbox
|
||||||
|
* @param Application $app
|
||||||
*/
|
*/
|
||||||
public function apply(base $appbox, Application $app)
|
public function apply(base $appbox, Application $app)
|
||||||
{
|
{
|
||||||
|
@@ -54,7 +54,8 @@ class patch_371 implements patchInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param base $databox
|
* @param base $databox
|
||||||
|
* @param Application $app
|
||||||
*/
|
*/
|
||||||
public function apply(base $databox, Application $app)
|
public function apply(base $databox, Application $app)
|
||||||
{
|
{
|
||||||
|
@@ -55,7 +55,8 @@ class patch_373 implements patchInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param base $databox
|
* @param base $appbox
|
||||||
|
* @param Application $app
|
||||||
*/
|
*/
|
||||||
public function apply(base $appbox, Application $app)
|
public function apply(base $appbox, Application $app)
|
||||||
{
|
{
|
||||||
|
@@ -54,7 +54,8 @@ class patch_380 implements patchInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param base $databox
|
* @param base $databox
|
||||||
|
* @param Application $app
|
||||||
*/
|
*/
|
||||||
public function apply(base $databox, Application $app)
|
public function apply(base $databox, Application $app)
|
||||||
{
|
{
|
||||||
|
@@ -54,7 +54,8 @@ class patch_3802 implements patchInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param base $appbox
|
* @param base $appbox
|
||||||
|
* @param Application $app
|
||||||
*/
|
*/
|
||||||
public function apply(base $appbox, Application $app)
|
public function apply(base $appbox, Application $app)
|
||||||
{
|
{
|
||||||
|
@@ -55,7 +55,8 @@ class patch_3803 implements patchInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param base $appbox
|
* @param base $appbox
|
||||||
|
* @param Application $app
|
||||||
*/
|
*/
|
||||||
public function apply(base $appbox, Application $app)
|
public function apply(base $appbox, Application $app)
|
||||||
{
|
{
|
||||||
|
@@ -49,7 +49,8 @@ class patch_3804 implements patchInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param base $appbox
|
* @param base $appbox
|
||||||
|
* @param Application $app
|
||||||
*/
|
*/
|
||||||
public function apply(base $appbox, Application $app)
|
public function apply(base $appbox, Application $app)
|
||||||
{
|
{
|
||||||
|
@@ -103,10 +103,12 @@ class random
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $type
|
* @param Application $app
|
||||||
* @param int $usr
|
* @param string $type
|
||||||
* @param string $end_date
|
* @param int $usr
|
||||||
* @param mixed content $datas
|
* @param DateTime $end_date
|
||||||
|
* @param mixed content $datas
|
||||||
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public static function getUrlToken(Application $app, $type, $usr, DateTime $end_date = null, $datas = '')
|
public static function getUrlToken(Application $app, $type, $usr, DateTime $end_date = null, $datas = '')
|
||||||
@@ -226,9 +228,12 @@ class random
|
|||||||
/**
|
/**
|
||||||
* Get the validation token for one user and one validation basket
|
* Get the validation token for one user and one validation basket
|
||||||
*
|
*
|
||||||
* @param integer $userId
|
* @param Application $app
|
||||||
* @param integer $basketId
|
* @param integer $userId
|
||||||
* @return string The desired token
|
* @param integer $basketId
|
||||||
|
*
|
||||||
|
* @return string The token
|
||||||
|
*
|
||||||
* @throws \Exception_NotFound
|
* @throws \Exception_NotFound
|
||||||
*/
|
*/
|
||||||
public static function getValidationToken(Application $app, $userId, $basketId)
|
public static function getValidationToken(Application $app, $userId, $basketId)
|
||||||
|
@@ -157,11 +157,11 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param <int> $base_id
|
* @param Application $app
|
||||||
* @param <int> $record_id
|
* @param integer $sbas_id
|
||||||
* @param <int> $number
|
* @param integer $record_id
|
||||||
* @param <string> $xml
|
* @param integer $number
|
||||||
* @param <string> $status
|
*
|
||||||
* @return record_adapter
|
* @return record_adapter
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $sbas_id, $record_id, $number = null)
|
public function __construct(Application $app, $sbas_id, $record_id, $number = null)
|
||||||
@@ -1126,9 +1126,11 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @todo move this function to caption_record
|
* @todo move this function to caption_record
|
||||||
* @param array $metadatas
|
*
|
||||||
|
* @param array $metadatas
|
||||||
|
* @param boolean $force_readonly
|
||||||
|
*
|
||||||
* @return record_adapter
|
* @return record_adapter
|
||||||
*/
|
*/
|
||||||
public function set_metadatas(Array $metadatas, $force_readonly = false)
|
public function set_metadatas(Array $metadatas, $force_readonly = false)
|
||||||
@@ -1243,7 +1245,9 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \collection $collection
|
* @param Application $app
|
||||||
|
* @param \collection $collection
|
||||||
|
*
|
||||||
* @return \record_adapter
|
* @return \record_adapter
|
||||||
*/
|
*/
|
||||||
public static function createStory(Application $app, \collection $collection)
|
public static function createStory(Application $app, \collection $collection)
|
||||||
@@ -1296,7 +1300,9 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param File $file
|
* @param File $file
|
||||||
|
* @param Application $app
|
||||||
|
*
|
||||||
* @return \record_adapter
|
* @return \record_adapter
|
||||||
*/
|
*/
|
||||||
public static function createFromFile(File $file, Application $app)
|
public static function createFromFile(File $file, Application $app)
|
||||||
@@ -1404,9 +1410,10 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $base_id
|
* @param Application $app
|
||||||
* @param int $record_id
|
* @param integer $sbas_id
|
||||||
* @param string $sha256
|
* @param string $sha256
|
||||||
|
* @param integer $record_id
|
||||||
* @return record_adapter
|
* @return record_adapter
|
||||||
*/
|
*/
|
||||||
public static function get_record_by_sha(Application $app, $sbas_id, $sha256, $record_id = null)
|
public static function get_record_by_sha(Application $app, $sbas_id, $sha256, $record_id = null)
|
||||||
@@ -1442,9 +1449,11 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
/**
|
/**
|
||||||
* Search for a record on a databox by UUID
|
* Search for a record on a databox by UUID
|
||||||
*
|
*
|
||||||
* @param \databox $databox
|
* @param Application $app
|
||||||
* @param string $uuid
|
* @param \databox $databox
|
||||||
* @param int $record_id Restrict check on a record_id
|
* @param string $uuid
|
||||||
|
* @param int $record_id Restrict check on a record_id
|
||||||
|
*
|
||||||
* @return \record_adapter
|
* @return \record_adapter
|
||||||
*/
|
*/
|
||||||
public static function get_record_by_uuid(Application $app, \databox $databox, $uuid, $record_id = null)
|
public static function get_record_by_uuid(Application $app, \databox $databox, $uuid, $record_id = null)
|
||||||
@@ -1874,10 +1883,13 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param databox $databox
|
* @param databox $databox
|
||||||
* @param int $offset_start
|
* @param integer $original_name
|
||||||
* @param int $how_many
|
* @param integer $caseSensitive
|
||||||
* @return type
|
* @param integer $offset_start
|
||||||
|
* @param integer $how_many
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function get_records_by_originalname(databox $databox, $original_name, $caseSensitive = false, $offset_start = 0, $how_many = 10)
|
public static function get_records_by_originalname(databox $databox, $original_name, $caseSensitive = false, $offset_start = 0, $how_many = 10)
|
||||||
{
|
{
|
||||||
|
@@ -51,10 +51,12 @@ class record_exportElement extends record_adapter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $base_id
|
* @param Application $app
|
||||||
* @param int $record_id
|
* @param integer $sbas_id
|
||||||
* @param string $directory
|
* @param integer $record_id
|
||||||
* @param int $remain_hd
|
* @param string $directory
|
||||||
|
* @param integer $remain_hd
|
||||||
|
*
|
||||||
* @return record_exportElement
|
* @return record_exportElement
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $sbas_id, $record_id, $directory = '', $remain_hd = false)
|
public function __construct(Application $app, $sbas_id, $record_id, $directory = '', $remain_hd = false)
|
||||||
|
@@ -33,10 +33,11 @@ class record_orderElement extends record_adapter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $base_id
|
* @param Application $app
|
||||||
* @param int $record_id
|
* @param int $sbas_id
|
||||||
* @param boolean $deny
|
* @param int $record_id
|
||||||
* @param int $order_master_id
|
* @param boolean $deny
|
||||||
|
* @param int $order_master_id
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $sbas_id, $record_id, $deny, $order_master_id)
|
public function __construct(Application $app, $sbas_id, $record_id, $deny, $order_master_id)
|
||||||
{
|
{
|
||||||
|
@@ -82,9 +82,13 @@ class record_preview extends record_adapter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $env
|
* @param Application $app
|
||||||
* @param int $pos
|
* @param string $env
|
||||||
* @param mixed content $contId
|
* @param integer $pos
|
||||||
|
* @param mixed $contId
|
||||||
|
* @param SearchEngineInterface $search_engine
|
||||||
|
* @param string $query
|
||||||
|
*
|
||||||
* @return record_preview
|
* @return record_preview
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $env, $pos, $contId, SearchEngineInterface $search_engine = null, $query = '')
|
public function __construct(Application $app, $env, $pos, $contId, SearchEngineInterface $search_engine = null, $query = '')
|
||||||
|
@@ -67,9 +67,9 @@ class recordutils_image extends recordutils
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $bas
|
* @param Application $app
|
||||||
* @param int $rec
|
* @param \media_subdef $subdef
|
||||||
* @param boolean $hd
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function stamp(Application $app, \media_subdef $subdef)
|
public static function stamp(Application $app, \media_subdef $subdef)
|
||||||
@@ -308,7 +308,9 @@ class recordutils_image extends recordutils
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \media_subdef $subdef
|
* @param Application $app
|
||||||
|
* @param \media_subdef $subdef
|
||||||
|
*
|
||||||
* @return boolean|string
|
* @return boolean|string
|
||||||
*/
|
*/
|
||||||
public static function watermark(Application $app, \media_subdef $subdef)
|
public static function watermark(Application $app, \media_subdef $subdef)
|
||||||
|
@@ -38,7 +38,7 @@ class registry implements registryInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \Alchemy\Phrasea\Cache\Cache $cache
|
* @param Application $app
|
||||||
* @return registry
|
* @return registry
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app)
|
public function __construct(Application $app)
|
||||||
@@ -129,7 +129,9 @@ class registry implements registryInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $key
|
* @param string $key
|
||||||
|
* @param mixed $defaultvalue
|
||||||
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function get($key, $defaultvalue = null)
|
public function get($key, $defaultvalue = null)
|
||||||
@@ -146,8 +148,10 @@ class registry implements registryInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
* @param string $type
|
||||||
|
*
|
||||||
* @return registry
|
* @return registry
|
||||||
*/
|
*/
|
||||||
public function set($key, $value, $type)
|
public function set($key, $value, $type)
|
||||||
|
@@ -39,7 +39,8 @@ class set_export extends set_abstract
|
|||||||
*
|
*
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param string $lst
|
* @param string $lst
|
||||||
* @param int $sstid
|
* @param integer $sstid
|
||||||
|
* @param integer $storyWZid
|
||||||
* @return set_export
|
* @return set_export
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $lst, $sstid, $storyWZid = null)
|
public function __construct(Application $app, $lst, $sstid, $storyWZid = null)
|
||||||
@@ -395,8 +396,12 @@ class set_export extends set_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Array $subdefs
|
* @param User_Adapter $user
|
||||||
* @param boolean $rename_title
|
* @param Filesystem $filesystem
|
||||||
|
* @param Array $subdefs
|
||||||
|
* @param boolean $rename_title
|
||||||
|
* @param boolean $includeBusinessFields
|
||||||
|
*
|
||||||
* @return Array
|
* @return Array
|
||||||
*/
|
*/
|
||||||
public function prepare_export(User_Adapter $user, Filesystem $filesystem, Array $subdefs, $rename_title, $includeBusinessFields)
|
public function prepare_export(User_Adapter $user, Filesystem $filesystem, Array $subdefs, $rename_title, $includeBusinessFields)
|
||||||
@@ -691,9 +696,11 @@ class set_export extends set_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param String $token
|
* @param Application $app
|
||||||
* @param Array $list
|
* @param String $token
|
||||||
* @param string $zipFile
|
* @param Array $list
|
||||||
|
* @param string $zipFile
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function build_zip(Application $app, $token, Array $list, $zipFile)
|
public static function build_zip(Application $app, $token, Array $list, $zipFile)
|
||||||
@@ -848,9 +855,12 @@ class set_export extends set_abstract
|
|||||||
/**
|
/**
|
||||||
* @todo a revoir le cas anonymous
|
* @todo a revoir le cas anonymous
|
||||||
*
|
*
|
||||||
* @param Array $list
|
* @param Application $app
|
||||||
* @param String> $type
|
* @param Array $list
|
||||||
* @param boolean $anonymous
|
* @param String $type
|
||||||
|
* @param boolean $anonymous
|
||||||
|
* @param string $comment
|
||||||
|
*
|
||||||
* @return Void
|
* @return Void
|
||||||
*/
|
*/
|
||||||
public static function log_download(Application $app, Array $list, $type, $anonymous = false, $comment = '')
|
public static function log_download(Application $app, Array $list, $type, $anonymous = false, $comment = '')
|
||||||
|
@@ -20,15 +20,17 @@ class set_exportftp extends set_export
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Int $usr_to
|
* @param integer $usr_to
|
||||||
* @param String $host
|
* @param String $host
|
||||||
* @param String $login
|
* @param String $login
|
||||||
* @param String $password
|
* @param String $password
|
||||||
* @param Int $ssl
|
* @param integer $ssl
|
||||||
* @param Int $retry
|
* @param integer $retry
|
||||||
* @param Int $passif
|
* @param integer $passif
|
||||||
* @param String $destfolder
|
* @param String $destfolder
|
||||||
* @param String $makedirectory
|
* @param String $makedirectory
|
||||||
|
* @param String $logfile
|
||||||
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function export_ftp($usr_to, $host, $login, $password, $ssl, $retry, $passif, $destfolder, $makedirectory, $logfile)
|
public function export_ftp($usr_to, $host, $login, $password, $ssl, $retry, $passif, $destfolder, $makedirectory, $logfile)
|
||||||
|
@@ -72,10 +72,12 @@ class set_order extends set_abstract
|
|||||||
/**
|
/**
|
||||||
* Create a new order entry
|
* Create a new order entry
|
||||||
*
|
*
|
||||||
* @param RecordsRequest $recordsRequest
|
* @param Application $app
|
||||||
* @param integer $orderer
|
* @param RecordsRequest $records
|
||||||
* @param string $usage
|
* @param \User_Adapter $orderer
|
||||||
* @param \DateTime $deadline
|
* @param string $usage
|
||||||
|
* @param \DateTime $deadline
|
||||||
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public static function create(Application $app, RecordsRequest $records, \User_Adapter $orderer, $usage, \DateTime $deadline = null)
|
public static function create(Application $app, RecordsRequest $records, \User_Adapter $orderer, $usage, \DateTime $deadline = null)
|
||||||
@@ -130,10 +132,12 @@ class set_order extends set_abstract
|
|||||||
/**
|
/**
|
||||||
* List orders
|
* List orders
|
||||||
*
|
*
|
||||||
* @param appbox $appbox
|
* @param Application $app
|
||||||
* @param array $baseIds
|
* @param array $baseIds
|
||||||
* @param integer $offsetStart
|
* @param integer $offsetStart
|
||||||
* @param integer $perPage
|
* @param integer $perPage
|
||||||
|
* @param string $sort
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function listOrders(Application $app, array $baseIds, $offsetStart = 0, $perPage = 10, $sort = null)
|
public static function listOrders(Application $app, array $baseIds, $offsetStart = 0, $perPage = 10, $sort = null)
|
||||||
@@ -201,7 +205,9 @@ class set_order extends set_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param Application $app
|
||||||
|
* @param int $id
|
||||||
|
*
|
||||||
* @return set_order
|
* @return set_order
|
||||||
*/
|
*/
|
||||||
public function __construct(Application $app, $id)
|
public function __construct(Application $app, $id)
|
||||||
@@ -335,8 +341,10 @@ class set_order extends set_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param Array $elements_ids
|
* @param Application $app
|
||||||
* @param boolean $force
|
* @param Array $elements_ids
|
||||||
|
* @param boolean $force
|
||||||
|
*
|
||||||
* @return set_order
|
* @return set_order
|
||||||
*/
|
*/
|
||||||
public function send_elements(Application $app, Array $elements_ids, $force)
|
public function send_elements(Application $app, Array $elements_ids, $force)
|
||||||
|
@@ -10,6 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
|
use Entities\Basket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -34,10 +35,10 @@ class set_selection extends set_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \Entities\Basket $basket
|
* @param Basket $Basket
|
||||||
* @return set_selection
|
* @return set_selection
|
||||||
*/
|
*/
|
||||||
public function load_basket(\Entities\Basket $Basket)
|
public function load_basket(Basket $Basket)
|
||||||
{
|
{
|
||||||
foreach ($Basket->getElements() as $basket_element) {
|
foreach ($Basket->getElements() as $basket_element) {
|
||||||
$this->add_element($basket_element->getRecord($this->app));
|
$this->add_element($basket_element->getRecord($this->app));
|
||||||
@@ -48,7 +49,9 @@ class set_selection extends set_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param array $rights
|
* @param array $rights
|
||||||
|
* @param array $sbas_rights
|
||||||
|
*
|
||||||
* @return set_selection
|
* @return set_selection
|
||||||
*/
|
*/
|
||||||
public function grep_authorized(Array $rights = array(), Array $sbas_rights = array())
|
public function grep_authorized(Array $rights = array(), Array $sbas_rights = array())
|
||||||
@@ -116,7 +119,9 @@ class set_selection extends set_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param array $lst
|
* @param array $lst
|
||||||
|
* @param Boolean $flatten_groupings
|
||||||
|
*
|
||||||
* @return set_selection
|
* @return set_selection
|
||||||
*/
|
*/
|
||||||
public function load_list(Array $lst, $flatten_groupings = false)
|
public function load_list(Array $lst, $flatten_groupings = false)
|
||||||
|
@@ -828,9 +828,9 @@ abstract class task_abstract
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param appbox $appbox
|
* @param \Pimple $dependencyContainer
|
||||||
* @param string $class_name
|
* @param string $class_name
|
||||||
* @param string $settings (xml string)
|
* @param string $settings
|
||||||
* @return task_abstract
|
* @return task_abstract
|
||||||
*/
|
*/
|
||||||
public static function create(\Pimple $dependencyContainer, $class_name, $settings = null)
|
public static function create(\Pimple $dependencyContainer, $class_name, $settings = null)
|
||||||
|
@@ -1465,10 +1465,10 @@ class unicode
|
|||||||
/**
|
/**
|
||||||
* Removes ctrl chars (tous < 32 sauf 9,10,13)
|
* Removes ctrl chars (tous < 32 sauf 9,10,13)
|
||||||
*
|
*
|
||||||
* @staticvar null $a_in
|
* @param string $string
|
||||||
* @staticvar null $a_out
|
* @param string $substitution
|
||||||
* @param type $s
|
*
|
||||||
* @return type
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function substituteCtrlCharacters($string, $substitution = '_')
|
public function substituteCtrlCharacters($string, $substitution = '_')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user