for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_table\core\Table\Columns;
use kalanis\kw_connect\core\Interfaces\IRow;
/**
* Class DateDetail
* @package kalanis\kw_table\core\Table\Columns
* Extended date format in title
*/
class DateDetail extends Date
{
public function getValue(IRow $source)
$result = $this->value($source, $this->sourceName);
if (empty($result)) {
return 0;
} else {
return '<span title="' . date('Y-m-d H:i:s', intval($result)) . '">' . date($this->format, intval($result)) . '</span>';
}