From 861a250cd869a3cd86c11af5b45ce8f41edbc411 Mon Sep 17 00:00:00 2001 From: Max Sikstrom Date: Mon, 7 Jul 2014 14:16:24 +0200 Subject: [PATCH] Add support for tagging tables as not available through the API Since we want to convert parts of the system to list views, but we are not sure about the API at the moment (or possible that we are sure that we want to change it), make it possible to disable certain tables through the API. Also hide the saved reports table from the API Change-Id: Iedb92565ece97ddb4f996ee33be4468cddbcff99 Signed-off-by: Max Sikstrom --- modules/orm/models/objectpool.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/orm/models/objectpool.php b/modules/orm/models/objectpool.php index 280333b17..900c62de3 100644 --- a/modules/orm/models/objectpool.php +++ b/modules/orm/models/objectpool.php @@ -22,6 +22,7 @@ abstract class ObjectPool_Model extends BaseObjectPool_Model { * This can be used to hide tables from the HTTP-API that isn't API-stable * enough yet. */ + public function available_for($where) { if(isset(static::$available_for[$where])) { return static::$available_for[$where]; -- 2.11.4.GIT