IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 72 | 72 | */ |
| 73 | 73 | protected $endpoints = array(); |
| 74 | 74 | |
| | 75 | /** |
| | 76 | * The route map is an associative array with path regexes as the keys. The |
| | 77 | * value is an indexed array with the callback function/method as the first |
| | 78 | * item, and a bitmask of HTTP methods as the second item (see the class |
| | 79 | * constants). |
| | 80 | * |
| | 81 | * @access protected |
| | 82 | * @var array Route map of the routes |
| | 83 | */ |
| | 84 | protected $route_map = array(); |
| | 85 | |
| 75 | 86 | /** |
| 76 | 87 | * Options defined for the routes. |
| 77 | 88 | * |
| … |
… |
|
| 673 | 684 | } |
| 674 | 685 | } |
| 675 | 686 | |
| | 687 | /** |
| | 688 | * Retrieves the internally stored route map. |
| | 689 | * |
| | 690 | * @access protected |
| | 691 | * |
| | 692 | * @return array Route map of the routes. |
| | 693 | */ |
| | 694 | protected function get_route_map() { |
| | 695 | return $this->route_map; |
| | 696 | } |
| | 697 | |
| | 698 | /** |
| | 699 | * Sets the internally stored route map. |
| | 700 | * |
| | 701 | * @access protected |
| | 702 | * |
| | 703 | * @param array $route_map Route map of the routes. |
| | 704 | */ |
| | 705 | protected function set_route_map( $route_map ) { |
| | 706 | $this->route_map = $route_map; |
| | 707 | } |
| | 708 | |
| 676 | 709 | /** |
| 677 | 710 | * Retrieves the route map. |
| 678 | 711 | * |
| | 712 | * Caches the results internally. |
| | 713 | * |
| 679 | 714 | * The route map is an associative array with path regexes as the keys. The |
| 680 | 715 | * value is an indexed array with the callback function/method as the first |
| 681 | 716 | * item, and a bitmask of HTTP methods as the second item (see the class |
| … |
… |
|
| 695 | 730 | * `'/path/regex' => array( array( $callback, $bitmask ), ...)`. |
| 696 | 731 | */ |
| 697 | 732 | public function get_routes() { |
| | 733 | $endpoints = $this->get_route_map(); |
| | 734 | |
| | 735 | if ( ! empty( $endpoints ) ) { |
| | 736 | return $endpoints; |
| | 737 | } |
| 698 | 738 | |
| 699 | 739 | /** |
| 700 | 740 | * Filters the array of available endpoints. |
| … |
… |
|
| 756 | 796 | } |
| 757 | 797 | } |
| 758 | 798 | } |
| | 799 | $this->set_route_map( $endpoints ); |
| 759 | 800 | |
| 760 | 801 | return $endpoints; |
| 761 | 802 | } |