| @@ 8553-8559 (lines=7) @@ | ||
| 8550 | * |
|
| 8551 | * @since 2.0 |
|
| 8552 | */ |
|
| 8553 | private function do_hook () { |
|
| 8554 | $args = func_get_args(); |
|
| 8555 | if ( empty( $args ) ) |
|
| 8556 | return false; |
|
| 8557 | $name = array_shift( $args ); |
|
| 8558 | return pods_do_hook( "api", $name, $args, $this ); |
|
| 8559 | } |
|
| 8560 | ||
| 8561 | /** |
|
| 8562 | * Handle variables that have been deprecated |
|
| @@ 3119-3128 (lines=10) @@ | ||
| 3116 | * |
|
| 3117 | * @since 2.0 |
|
| 3118 | */ |
|
| 3119 | private static function do_hook () { |
|
| 3120 | $args = func_get_args(); |
|
| 3121 | ||
| 3122 | if ( empty( $args ) ) |
|
| 3123 | return false; |
|
| 3124 | ||
| 3125 | $name = array_shift( $args ); |
|
| 3126 | ||
| 3127 | return pods_do_hook( 'data', $name, $args ); |
|
| 3128 | } |
|
| 3129 | ||
| 3130 | /** |
|
| 3131 | * Get the complete sql |
|
| @@ 5270-5282 (lines=13) @@ | ||
| 5267 | /** |
|
| 5268 | * @return array|bool|mixed|null |
|
| 5269 | */ |
|
| 5270 | private function do_hook() { |
|
| 5271 | ||
| 5272 | $args = func_get_args(); |
|
| 5273 | ||
| 5274 | if ( empty( $args ) ) { |
|
| 5275 | return false; |
|
| 5276 | } |
|
| 5277 | ||
| 5278 | $name = array_shift( $args ); |
|
| 5279 | ||
| 5280 | return pods_do_hook( 'ui', $name, $args, $this ); |
|
| 5281 | ||
| 5282 | } |
|
| 5283 | } |
|
| 5284 | ||
| @@ 4483-4495 (lines=13) @@ | ||
| 4480 | * |
|
| 4481 | * @since 2.0 |
|
| 4482 | */ |
|
| 4483 | private function do_hook( $name ) { |
|
| 4484 | ||
| 4485 | $args = func_get_args(); |
|
| 4486 | ||
| 4487 | if ( empty( $args ) ) { |
|
| 4488 | return false; |
|
| 4489 | } |
|
| 4490 | ||
| 4491 | // Remove first argument. |
|
| 4492 | array_shift( $args ); |
|
| 4493 | ||
| 4494 | return pods_do_hook( 'pods', $name, $args, $this ); |
|
| 4495 | } |
|
| 4496 | ||
| 4497 | /** |
|
| 4498 | * Handle variables that have been deprecated and PodsData vars |
|