| @@ 3067-3076 (lines=10) @@ | ||
| 3064 | * |
|
| 3065 | * @since 2.0 |
|
| 3066 | */ |
|
| 3067 | private static function do_hook () { |
|
| 3068 | $args = func_get_args(); |
|
| 3069 | ||
| 3070 | if ( empty( $args ) ) |
|
| 3071 | return false; |
|
| 3072 | ||
| 3073 | $name = array_shift( $args ); |
|
| 3074 | ||
| 3075 | return pods_do_hook( 'data', $name, $args ); |
|
| 3076 | } |
|
| 3077 | ||
| 3078 | /** |
|
| 3079 | * Get the complete sql |
|
| @@ 3868-3877 (lines=10) @@ | ||
| 3865 | * |
|
| 3866 | * @since 2.0 |
|
| 3867 | */ |
|
| 3868 | private function do_hook () { |
|
| 3869 | $args = func_get_args(); |
|
| 3870 | ||
| 3871 | if ( empty( $args ) ) |
|
| 3872 | return false; |
|
| 3873 | ||
| 3874 | $name = array_shift( $args ); |
|
| 3875 | ||
| 3876 | return pods_do_hook( 'pods', $name, $args, $this ); |
|
| 3877 | } |
|
| 3878 | ||
| 3879 | /** |
|
| 3880 | * Handle variables that have been deprecated and PodsData vars |
|
| @@ 8447-8453 (lines=7) @@ | ||
| 8444 | * |
|
| 8445 | * @since 2.0 |
|
| 8446 | */ |
|
| 8447 | private function do_hook () { |
|
| 8448 | $args = func_get_args(); |
|
| 8449 | if ( empty( $args ) ) |
|
| 8450 | return false; |
|
| 8451 | $name = array_shift( $args ); |
|
| 8452 | return pods_do_hook( "api", $name, $args, $this ); |
|
| 8453 | } |
|
| 8454 | ||
| 8455 | /** |
|
| 8456 | * Handle variables that have been deprecated |
|
| @@ 4534-4546 (lines=13) @@ | ||
| 4531 | /** |
|
| 4532 | * @return array|bool|mixed|null |
|
| 4533 | */ |
|
| 4534 | private function do_hook() { |
|
| 4535 | ||
| 4536 | $args = func_get_args(); |
|
| 4537 | ||
| 4538 | if ( empty( $args ) ) { |
|
| 4539 | return false; |
|
| 4540 | } |
|
| 4541 | ||
| 4542 | $name = array_shift( $args ); |
|
| 4543 | ||
| 4544 | return pods_do_hook( "ui", $name, $args, $this ); |
|
| 4545 | ||
| 4546 | } |
|
| 4547 | } |
|
| 4548 | ||