| | |
| | | |
| | | protected array $ignore = [ |
| | | 'mappedMethods', |
| | | 'ignore' |
| | | 'ignore', |
| | | 'id' |
| | | ]; |
| | | public function outputSchema():array |
| | | { |
| | | global $wp; |
| | | $current = home_url( add_query_arg( $_GET, $wp->request ) ); |
| | | $id = (isset($this->id)) ? $this->id : $current.'/#'.strtolower($this->getTypeName()); |
| | | $id = (isset($this->id)) ? $this->id : $current.'#'.strtolower($this->getTypeName()); |
| | | $elements = array_map( |
| | | function ($value) { |
| | | |
| | |
| | | } |
| | | $this->id = $id; |
| | | } |
| | | |
| | | public function delete(string $property):void |
| | | { |
| | | if (property_exists($this, $property)) { |
| | | unset($this->$property); |
| | | } |
| | | } |
| | | } |