File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/give/src/Donations/ListTable/Columns/CreatedAtColumn.php
Back
<?php declare(strict_types=1); namespace Give\Donations\ListTable\Columns; use Give\Donations\Models\Donation; use Give\Framework\ListTable\ModelColumn; /** * @since 2.24.0 * * @extends ModelColumn<Donation> */ class CreatedAtColumn extends ModelColumn { protected $sortColumn = 'createdAt'; /** * @since 2.24.0 * * @inheritDoc */ public static function getId(): string { return 'createdAt'; } /** * @since 2.24.0 * * @inheritDoc */ public function getLabel(): string { return __('Created At', 'give'); } /** * @since 2.24.0 * * @inheritDoc * * @param Donation $model */ public function getCellValue($model): string { $format = _x('m/d/Y \a\t g:i a', 'human-readable datetime format', 'give'); return $model->createdAt->format($format); } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings