From 01a769c7d03f00acf5e4ec75c9b11f81c875629d Mon Sep 17 00:00:00 2001 From: Laurent Giovannoni <laurent.giovannoni@maarch.org> Date: Tue, 26 Feb 2013 14:47:43 +0000 Subject: [PATCH] new collection in progress --- core/trunk/core/class/class_security.php | 16 ++++++++++++++++ core/trunk/core/xml/actions_pages.xml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/core/trunk/core/class/class_security.php b/core/trunk/core/class/class_security.php index ffc192bfaac..1dfc737acad 100644 --- a/core/trunk/core/class/class_security.php +++ b/core/trunk/core/class/class_security.php @@ -425,6 +425,22 @@ class security extends dbquery return ''; } + /** + * Returns the collection extension table from a collId + * + * @param $collId string collection ID + * @return string version table or empty string if not found + */ + public function retrieve_extension_table_from_coll_id($collId) + { + for ($i=0;$i<count($_SESSION['collections']);$i++) { + if ($_SESSION['collections'][$i]['id'] == $collId) { + return $_SESSION['collections'][$i]['extensions'][0]; + } + } + return ''; + } + /** * Returns the adr table from a table * diff --git a/core/trunk/core/xml/actions_pages.xml b/core/trunk/core/xml/actions_pages.xml index 869f9a8da9c..53d24ad4fe4 100644 --- a/core/trunk/core/xml/actions_pages.xml +++ b/core/trunk/core/xml/actions_pages.xml @@ -185,4 +185,12 @@ An action page is described in a ACTIONPAGE tag : <KEYWORD>indexing</KEYWORD> <FLAG_CREATE>true</FLAG_CREATE> </ACTIONPAGE> + <ACTIONPAGE> + <ID>validate_business</ID> + <LABEL>_VALIDATE_QUALIF_BUSINESS</LABEL> + <NAME>validate_business</NAME> + <ORIGIN>apps</ORIGIN> + <MODULE></MODULE> + <FLAG_CREATE>false</FLAG_CREATE> + </ACTIONPAGE> </ROOT> -- GitLab