Tool::writeSchema PHP Method

writeSchema() public method

スキーマを書き出す
public writeSchema ( array $data, string $path ) : boolean
$data array
$path string スキーマファイルの生成場所
return boolean
    public function writeSchema($data, $path)
    {
        if (isset($data['Tool'])) {
            $data = $data['Tool'];
        }
        if (!$data['core'] && !$data['plugin']) {
            return false;
        }
        $result = true;
        if ($data['core']) {
            if (!$this->_writeSchema('core', $data['core'], $path)) {
                $result = false;
            }
        }
        if ($data['plugin']) {
            if (!$this->_writeSchema('plugin', $data['plugin'], $path)) {
                $result = false;
            }
        }
        return $result;
    }