PHP 클래스 Bolt\Storage\ContentRequest\Edit

Prior to v3.0 this functionality existed in \Bolt\Controllers\Backend::editcontent().
저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt

보호된 프로퍼티들

프로퍼티 타입 설명
$config Bolt\Config
$em Bolt\Storage\EntityManager
$filesystem Bolt\Filesystem\Manager
$loggerFlash Bolt\Logger\FlashLoggerInterface
$loggerSystem Psr\Log\LoggerInterface
$users Bolt\Users

공개 메소드들

메소드 설명
__construct ( EntityManager $em, Config $config, Users $users, Bolt\Filesystem\Manager $filesystem, Psr\Log\LoggerInterface $loggerSystem, Bolt\Logger\FlashLoggerInterface $loggerFlash ) Constructor function.
action ( Content $content, Bolt\Storage\Mapping\ContentType $contentType, boolean $duplicate ) : array Do the edit form for a record.

비공개 메소드들

메소드 설명
createGroupTabs ( Bolt\Storage\Mapping\ContentType $contentType, array $has ) : array Generate tab groups.
getPublishingDate ( string $date, boolean $setNowOnEmpty = false ) : string Converts database publishing/depublishing dates to values to be used in Twig.
getRelationsList ( Bolt\Storage\Mapping\ContentType $contentType ) : array Convert POST relationship values to an array of Entity objects keyed by ContentType.
getTemplateFieldTemplates ( Bolt\Storage\Mapping\ContentType $contentType, Content $content ) : array Determine which templates will result in templatefields.
getUsedFieldtypes ( Bolt\Storage\Mapping\ContentType $contentType, Content $content, array $has ) : array Create a list of fields types used in regular, template and virtual fields.
neededFields ( array $relationValues, array $relationConfig ) : array Get an array of fields mentioned in the 'format:' for a relationship in contenttypes.

메소드 상세

__construct() 공개 메소드

Constructor function.
public __construct ( EntityManager $em, Config $config, Users $users, Bolt\Filesystem\Manager $filesystem, Psr\Log\LoggerInterface $loggerSystem, Bolt\Logger\FlashLoggerInterface $loggerFlash )
$em Bolt\Storage\EntityManager
$config Bolt\Config
$users Bolt\Users
$filesystem Bolt\Filesystem\Manager
$loggerSystem Psr\Log\LoggerInterface
$loggerFlash Bolt\Logger\FlashLoggerInterface

action() 공개 메소드

Do the edit form for a record.
public action ( Content $content, Bolt\Storage\Mapping\ContentType $contentType, boolean $duplicate ) : array
$content Bolt\Storage\Entity\Content A content record
$contentType Bolt\Storage\Mapping\ContentType The contenttype data
$duplicate boolean If TRUE create a duplicate record
리턴 array

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected Config,Bolt $config
리턴 Bolt\Config

$em 보호되어 있는 프로퍼티

protected EntityManager,Bolt\Storage $em
리턴 Bolt\Storage\EntityManager

$filesystem 보호되어 있는 프로퍼티

protected Manager,Bolt\Filesystem $filesystem
리턴 Bolt\Filesystem\Manager

$loggerFlash 보호되어 있는 프로퍼티

protected FlashLoggerInterface,Bolt\Logger $loggerFlash
리턴 Bolt\Logger\FlashLoggerInterface

$loggerSystem 보호되어 있는 프로퍼티

protected LoggerInterface,Psr\Log $loggerSystem
리턴 Psr\Log\LoggerInterface

$users 보호되어 있는 프로퍼티

protected Users,Bolt $users
리턴 Bolt\Users