From a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Thu, 25 May 2023 09:30:37 +0300 Subject: break form scripts in parts; first pdf example --- core/classes/Registry.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'core/classes/Registry.php') diff --git a/core/classes/Registry.php b/core/classes/Registry.php index 119e2b9..02a1ec5 100644 --- a/core/classes/Registry.php +++ b/core/classes/Registry.php @@ -24,7 +24,7 @@ class Registry * ------------------------------------------------------------------------- */ - /** @var $records (array) + /** @var array $records * keeps all ready-to-use records * --- --- -- - - - * @@ -37,7 +37,7 @@ class Registry */ private static $records = Array(); - /** @var $wish (array) + /** @var array $wish * keeps all records that will be carried-out later (if ever) * --- -- -- - - - * @@ -54,8 +54,8 @@ class Registry * --- -- -- - - - * store $data to the registry undel the label $key * - * @param $key (string) - * @param $data * + * @param string $key + * @param mixed $data */ static function set($key, $data) { @@ -80,8 +80,8 @@ class Registry * get data from registry, * stored under the label $key * - * @param $key (string): the label - * @return data (mixed) + * @param string $key : the label + * @return mixed data */ static function get($key) { @@ -107,7 +107,7 @@ class Registry * that a 'vow' will not use system resources to prepare * the data/object/handler/etc until/if-ever is called. * - * @param $label (string): label / refference key + * @param string $label : label / refference key * @param function : */ static function vow($label, $function) @@ -120,6 +120,9 @@ class Registry * --- * this is the method that carries out * the promissed function (with arguments) + * + * @param string $label + * @param array $args */ static function use($label, $args=[]) { -- cgit v1.2.3