Yoast\WP\Lib\Migrations
Table::columns_to_str() private Yoast 1.0
Get SQL for all columns.
{} Это метод класса: Table{}
Хуков нет.
Возвращает
Строку
. The SQL.
Использование
// private - только в коде основоного (родительского) класса $result = $this->columns_to_str();
Код Table::columns_to_str() Table::columns to str Yoast 16.1.1
private function columns_to_str() {
$str = '';
$fields = [];
$len = \count( $this->columns );
for ( $i = 0; $i < $len; $i++ ) {
$c = $this->columns[ $i ];
$fields[] = $c->__toString();
}
return \join( ",\n", $fields );
}