Файл edit-template.php

обработчик смены шаблона для страницы Подробнее...

См. исходные тексты.

Переменные

if(!($row=Wrong\Models\Pages::find($_POST['id']))) if($user->access() ->is_system($row)) if(! $user->access() ->write($row)) if(!in_array($_POST['template_id'], array_column(Wrong\Models\Templates::all_available(), 'id'))) $sth = $dbh->prepare("UPDATE `pages` SET `template_id` = :template_id WHERE `id` = :id")
 

Подробное описание

обработчик смены шаблона для страницы

См. определение в файле edit-template.php

Переменные

◆ $sth

if (!( $row=Wrong\Models\Pages::find( $_POST[ 'id']))) if ( $user->access() ->is_system( $row)) if (! $user->access() ->write( $row)) if (!in_array( $_POST[ 'template_id'], array_column(Wrong\Models\Templates::all_available(), 'id'))) $sth = $dbh->prepare("UPDATE `pages` SET `template_id` = :template_id WHERE `id` = :id")

См. определение в файле edit-template.php строка 28