px-files/_sys/php/pxcmd.php
public function register( $cmd, $fnc ){
		if( !is_string($cmd) ){
			return false;
		}
		if( array_key_exists($cmd, $this->pxcommands) ){
			trigger_error('PX Command "'.$cmd.'" is already registered.');
			return false;
		}
		$this->pxcommands[$cmd] = array(
			'cmd' => $cmd ,
			'name' => $cmd ,
			'fnc' => $fnc ,
		);

		$pxcmd = $this->px->get_px_command();
		if( is_array($pxcmd) && count($pxcmd) && $pxcmd[0] == $cmd ){
			$fnc($this->px);
		}
		return true;
	}
public function register( $cmd, $fnc ){
		if( !is_string($cmd) ){
			return false;
		}
		if( array_key_exists($cmd, $this->pxcommands) ){
			trigger_error('PX Command "'.$cmd.'" is already registered.');
			return false;
		}
		$this->pxcommands[$cmd] = array(
			'cmd' => $cmd ,
			'name' => $cmd ,
			'fnc' => $fnc ,
		);

		$pxcmd = $this->px->get_px_command();
		if( is_array($pxcmd) && count($pxcmd) && $pxcmd[0] == $cmd ){
			$fnc($this->px);
		}
		return true;
	}
PXコマンドを登録する。

@param string $cmd PXコマンド名
@param function $fnc 実行するコマンド
@return bool 成功時 `true`、失敗時 `false`