@@ -24,7 +24,7 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * @return AdminerCustomization |
|
| 27 | + * @return AdminerKfr |
|
| 28 | 28 | */ |
| 29 | 29 | function adminer_object() |
| 30 | 30 | { |
@@ -10,6 +10,9 @@ discard block |
||
| 10 | 10 | /** @access protected */ |
| 11 | 11 | var $plugins; |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @return string |
|
| 15 | + */ |
|
| 13 | 16 | function _findRootClass($class) { // is_subclass_of(string, string) is available since PHP 5.0.3 |
| 14 | 17 | do { |
| 15 | 18 | $return = $class; |
@@ -19,6 +22,7 @@ discard block |
||
| 19 | 22 | |
| 20 | 23 | /** Register plugins |
| 21 | 24 | * @param array object instances or null to register all classes starting by 'Adminer' |
| 25 | + * @param AdminerFrames[] $plugins |
|
| 22 | 26 | */ |
| 23 | 27 | function __construct($plugins) { |
| 24 | 28 | if ($plugins === null) { |
@@ -37,6 +41,9 @@ discard block |
||
| 37 | 41 | return call_user_func_array(array('parent', $function), $args); |
| 38 | 42 | } |
| 39 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $function |
|
| 46 | + */ |
|
| 40 | 47 | function _applyPlugin($function, $args) { |
| 41 | 48 | foreach ($this->plugins as $plugin) { |
| 42 | 49 | if (method_exists($plugin, $function)) { |
@@ -58,6 +65,9 @@ discard block |
||
| 58 | 65 | return $this->_callParent($function, $args); |
| 59 | 66 | } |
| 60 | 67 | |
| 68 | + /** |
|
| 69 | + * @param string $function |
|
| 70 | + */ |
|
| 61 | 71 | function _appendPlugin($function, $args) { |
| 62 | 72 | $return = $this->_callParent($function, $args); |
| 63 | 73 | foreach ($this->plugins as $plugin) { |