Fetch the template data

@return array
439068
protected function getTemplateData()
	{
		if ( $this->method == 'create' ) {
			$up = (new AddToTable($this->file, $this->compiler))->run($this->fields, $this->table, $this->connection, 'create');
			$down = (new DroppedTable)->drop($this->table, $this->connection);
		}

		if ( $this->method == 'table' ) {
			$up = (new AddForeignKeysToTable($this->file, $this->compiler))->run($this->fields, $this->table, $this->connection);
			$down = (new RemoveForeignKeysFromTable($this->file, $this->compiler))->run($this->fields, $this->table, $this->connection);
		}

		return [
			'CLASS' => ucwords(camel_case($this->migrationName)),
			'UP'    => $up,
			'DOWN'  => $down
		];
	}
278211
public function template() {

		if ( is_null( $this->template ) ) {
			$this->template = $this->locate();
		}

		return $this->template;
	}
876438
public function showTemplates()
		{
			$form_data = array(
				'headers' => 1
			);
			$data = $this->call('show_templates', $form_data, 'csv');
			$csv = new \parseCSV($data);

			$templates = array();

			foreach ($csv->data as $template_item) {
				$template = new Template;
				$template
					->setTemplateId((int)$template_item['Template Number'])
					->setName((string)$template_item['Template Name'])
					->setFolderId((int)$template_item['Folder ID']);
				$templates[] = $template;
			}

			return $templates;
		}
690395
public function getTemplate()
    {
        if (null === $this->template) {
            $this->template = $this->getTemplatePathDefault('layout');
        }

        return $this->template;
    }
1182335
protected function loadTemplates()
    {
        if ($this->templates === null) {
            $this->templates = array();
            $data = file_get_contents($this->fileName, false, null, $this->offset);
            foreach (preg_split("/^@@(?= [\w\d\.]+$)/m", $data, -1) as $chunk) {
                if (trim($chunk)) {
                    list($name, $content)         = explode("\n", $chunk, 2);
                    $this->templates[trim($name)] = trim($content);
                }
            }
        }
    }
993873
protected function getTemplate()
    {
        if ($this->template === null) {
            $this->template = \Tx_Oelib_TemplateRegistry::get(
                $this->templateFileName
            );
        }

        return $this->template;
    }
139510
public function render(): string
    {
        $this->template->setData($this->data);

        return $this->template->getOutput();
    }
875100
private function loadTemplate()
    {
        return [
            0 => $this->template[0] != '' ? file_get_contents($this->template[0]) : '',
            1 => $this->template[1] != '' ? file_get_contents($this->template[1]) : '',
            2 => $this->template[2] != '' ? file_get_contents($this->template[2]) : '',
        ];
    }
806353
public function getTemplateInheritors()
    {
        $templateInheritors = [];
        foreach ($this->inheritors as $inheritor) {
            if ($inheritor instanceof self) {
                $templateInheritors[] = $inheritor;
            }
        }

        return $templateInheritors;
    }
637728
public function getArrguments()
    {
        return [
            'model-name' => $this->modelName,
            '--table-name' => $this->tableName,
            '--connection-name' => $this->connectionName,
            '--engine-name' => $this->engineName,
            '--resource-file' => $this->resourceFile,
            '--template-name' => $this->template,
            '--without-timestamps' => $this->withoutTimestamps,
            '--with-soft-delete' => $this->withSoftDelete,
        ];
    }
915366
public function get() {
		foreach ( $this->page_template_files as $name => $page_template_path ) {
			if ( isset( $this->wrappers[ $name ] ) ) {
				continue;
			}

			if ( ! isset( $this->wrapper_files[ $name ] ) ) {
				continue;
			}

			$label = $this->_get_template_label( $page_template_path );
			if ( ! $label ) {
				continue;
			}

			// @codingStandardsIgnoreStart
			$this->wrappers[ $name ] = translate( $label, wp_get_theme( get_template() )->get( 'TextDomain' ) );
			// @codingStandardsIgnoreEnd
		}

		return $this->wrappers;
	}
257984
public function getTemplateVariables()
	{
		return array_merge($this->template_variables, [
			'options' => $this->getOptions(),
			'column' => $this->getColumn(),
			'key' => $this->getKey(),
			'status' => $this,
		]);
	}
270627
public function defaultTemplate()
    {
        if (isset($_GET['cut_page'])) {
            return array('page');
        }

        $page_name = 'page/'.strtolower($this->short_name);
        // See if we can locate the page
        try {
            $p = $this->app->locate('template', $page_name.'.html');
        } catch (Exception_PathFinder $e) {
            return array('page');
        }

        return array($page_name, '_top');
    }
1302310
public function toViewableData()
    {
        $module = $this->getModule();

        if ($source = $module->getDataSource()) {
            return $source->toDBObject();
        }
        
        return $this->owner->dbObject('TemplateData');
    }
472229
public static function get_page_templates() {
		static $wrappers = [];
		if ( $wrappers ) {
			return $wrappers;
		}

		$page_templates = new Model\Page_Templates();
		$wrappers = $page_templates->get();
		return $wrappers;
	}
97119
public function getData()
    {
        $this->fetchData();

        $this->preProcessData();

        $this->applyFilters();

        $this->postProcessData();

        return $this->output;
    }
763760
public function getTemplate()
    {
        if ($this->expectedMessage) {
            return $this->getMessageTemplate();
        }

        if (!isset($this->template)) {
            return $this->getDefaultTemplate();
        }

        return $this->template;
    }