px-files/_sys/php/commands/api.php
private function api_is(){
		switch( $this->command[2] ){
			case 'match_dynamic_path':
				$val = ($this->px->site() ? $this->px->site()->is_match_dynamic_path($this->px->req()->get_param('path')) : false);
				print $this->data_convert( $val );
				break;
			case 'page_in_breadcrumb':
				$val = ($this->px->site() ? $this->px->site()->is_page_in_breadcrumb($this->px->req()->get_param('path')) : false);
				print $this->data_convert( $val );
				break;
			case 'ignore_path':
				$val = $this->px->is_ignore_path($this->px->req()->get_param('path'));
				print $this->data_convert( $val );
				break;
			default:
				print $this->data_convert( array('result'=>0) );
				break;
		}
		exit;
	}
private function api_is(){
		switch( $this->command[2] ){
			case 'match_dynamic_path':
				$val = ($this->px->site() ? $this->px->site()->is_match_dynamic_path($this->px->req()->get_param('path')) : false);
				print $this->data_convert( $val );
				break;
			case 'page_in_breadcrumb':
				$val = ($this->px->site() ? $this->px->site()->is_page_in_breadcrumb($this->px->req()->get_param('path')) : false);
				print $this->data_convert( $val );
				break;
			case 'ignore_path':
				$val = $this->px->is_ignore_path($this->px->req()->get_param('path'));
				print $this->data_convert( $val );
				break;
			default:
				print $this->data_convert( array('result'=>0) );
				break;
		}
		exit;
	}
[API] api.is.*

結果を標準出力した後、`exit()` を発行してスクリプトを終了します。

@return void