@@ -405,6 +405,10 @@ discard block |
||
405 | 405 | return $result; |
406 | 406 | } |
407 | 407 | |
408 | + /** |
|
409 | + * @param string $type |
|
410 | + * @param string[] $function |
|
411 | + */ |
|
408 | 412 | public static function addRule($type, $function) |
409 | 413 | { |
410 | 414 | if (empty(self::$_rules[$type])) { |
@@ -687,14 +691,29 @@ discard block |
||
687 | 691 | return self::$_backendInstance; |
688 | 692 | } |
689 | 693 | |
694 | + /** |
|
695 | + * @param string $key |
|
696 | + */ |
|
690 | 697 | public static function get($key) { return self::backend()->get($key); } |
698 | + |
|
699 | + /** |
|
700 | + * @param string $key |
|
701 | + */ |
|
691 | 702 | public static function set($key, $value) { return self::backend()->set($key, $value); } |
692 | 703 | public static function getIdentity($id) { return self::backend()->getIdentity($id); } |
693 | 704 | public static function setIdentity($id, $value) { return self::backend()->setIdentity($id, $value); } |
694 | 705 | public static function getAgentsIndex($ns = '') { return self::backend()->getAgentsIndex($ns); } |
695 | 706 | public static function getAgentsIndexFingerprint($fg, $ns = '') { return self::backend()->getAgentsIndexFingerprint($fg, $ns); } |
707 | + |
|
708 | + /** |
|
709 | + * @param string $host |
|
710 | + */ |
|
696 | 711 | public static function getAgentsIndexHost($host, $ns = '') { return self::backend()->getAgentsIndexHost($host, $ns); } |
697 | 712 | public static function countAgentsFingerprint($fg, $ns = '') { return self::backend()->countAgentsFingerprint($fg, $ns); } |
713 | + |
|
714 | + /** |
|
715 | + * @param string $host |
|
716 | + */ |
|
698 | 717 | public static function countAgentsHost($host, $ns = '') { return self::backend()->countAgentsHost($host, $ns); } |
699 | 718 | public static function getConnections($agent, $ns = '') { return self::backend()->getConnections($agent, $ns); } |
700 | 719 | public static function getAgentConnections($agent, $ns = '') { return self::backend()->getAgentConnections($agent, $ns); } |