| @@ 8406-8412 (lines=7) @@ | ||
| 8403 | * |
|
| 8404 | * @since 2.0 |
|
| 8405 | */ |
|
| 8406 | private function do_hook () { |
|
| 8407 | $args = func_get_args(); |
|
| 8408 | if ( empty( $args ) ) |
|
| 8409 | return false; |
|
| 8410 | $name = array_shift( $args ); |
|
| 8411 | return pods_do_hook( "api", $name, $args, $this ); |
|
| 8412 | } |
|
| 8413 | ||
| 8414 | /** |
|
| 8415 | * Handle variables that have been deprecated |
|
| @@ 3899-3908 (lines=10) @@ | ||
| 3896 | * |
|
| 3897 | * @since 2.0 |
|
| 3898 | */ |
|
| 3899 | private function do_hook () { |
|
| 3900 | $args = func_get_args(); |
|
| 3901 | ||
| 3902 | if ( empty( $args ) ) |
|
| 3903 | return false; |
|
| 3904 | ||
| 3905 | $name = array_shift( $args ); |
|
| 3906 | ||
| 3907 | return pods_do_hook( 'pods', $name, $args, $this ); |
|
| 3908 | } |
|
| 3909 | ||
| 3910 | /** |
|
| 3911 | * Handle variables that have been deprecated and PodsData vars |
|
| @@ 3098-3107 (lines=10) @@ | ||
| 3095 | * |
|
| 3096 | * @since 2.0 |
|
| 3097 | */ |
|
| 3098 | private static function do_hook () { |
|
| 3099 | $args = func_get_args(); |
|
| 3100 | ||
| 3101 | if ( empty( $args ) ) |
|
| 3102 | return false; |
|
| 3103 | ||
| 3104 | $name = array_shift( $args ); |
|
| 3105 | ||
| 3106 | return pods_do_hook( 'data', $name, $args ); |
|
| 3107 | } |
|
| 3108 | ||
| 3109 | /** |
|
| 3110 | * Get the complete sql |
|
| @@ 4651-4663 (lines=13) @@ | ||
| 4648 | /** |
|
| 4649 | * @return array|bool|mixed|null |
|
| 4650 | */ |
|
| 4651 | private function do_hook() { |
|
| 4652 | ||
| 4653 | $args = func_get_args(); |
|
| 4654 | ||
| 4655 | if ( empty( $args ) ) { |
|
| 4656 | return false; |
|
| 4657 | } |
|
| 4658 | ||
| 4659 | $name = array_shift( $args ); |
|
| 4660 | ||
| 4661 | return pods_do_hook( "ui", $name, $args, $this ); |
|
| 4662 | ||
| 4663 | } |
|
| 4664 | } |
|
| 4665 | ||