for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Grido (https://github.com/o5/grido)
*
* Copyright (c) 2011 Petr Bugyík (http://petr.bugyik.cz)
* For the full copyright and license information, please view
* the file LICENSE.md that was distributed with this source code.
*/
namespace Grido\Components\Columns;
* Email column.
* @package Grido
* @subpackage Components\Columns
* @author Petr Bugyík
class Email extends Link
{
* @param string $value
* @return string
protected function formatHref($value)
return "mailto:" . $value;
}
* @param mixed $value
* @return \Nette\Utils\Html
protected function getAnchor($value)
$anchor = parent::getAnchor($value);
unset($anchor->attrs['target']);
unset($anchor->attrs['rel']);
return $anchor;