PluginProbe
FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager / 1.2.1
FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager v1.2.1
10.56 1.2.1 10 10.1 10.2 10.3 10.31 10.32 10.33 10.34 10.50 10.51 10.52 10.53 10.55 9.0 9.0.1 9.4 trunk 1.0.0 1.1 1.2
easy-code-manager / framework / view / block / parameter / base / list.php

list.php in FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager 1.2.1, at framework/view/block/parameter/base/list.php

63 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 *
4 */
5
6 /**
7 *
8 */
9 abstract class CJT_Framework_View_Block_Parameter_Base_List
10 extends CJT_Framework_View_Block_Parameter_Base_Abstract {
11
12 /**
13 * put your comment there...
14 *
15 * @param mixed $parameter
16 * @param mixed $factory
17 * @return CJT_Framework_Developer_Interface_Block_Shortcode_Parameters_Base_Abstract
18 */
19 public function __construct($parameter, $factory) {
20 // Parent procedure!
21 parent::__construct($parameter, $factory);
22 // Set parent reference for all child parameters.
23 foreach ($this->getParams() as $param) {
24 $param->setParent($this);
25 }
26 }
27
28 /**
29 * put your comment there...
30 *
31 */
32 public function enqueueScripts() {
33 // @TODO: Enqueue all childs!!
34 return array();
35 }
36
37 /**
38 * put your comment there...
39 *
40 */
41 public function enqueueStyles() {
42 // @TODO: Enqueue all childs!!
43 return array();
44 }
45
46 /**
47 * put your comment there...
48 *
49 */
50 public function getParams() {
51 // Initialize.
52 $params = array();
53 $typeObject = $this->getTypeObject();
54 // As the form objects might handle types that doesn't support
55 // child parameters (Example: List type might handle Boolean type!).
56 // We need to check the existance of the method.
57 if (method_exists($typeObject, 'getParams')) {
58 $params = $typeObject->getParams();
59 }
60 return $params;
61 }
62
63 } // End class.