Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/libraries/grid/Link_field.php | ||
---|---|---|
*/
|
||
public $data_name = 'id';
|
||
|
||
/**
|
||
* Title of data column
|
||
*
|
||
* @var string
|
||
*/
|
||
public $data_title = '';
|
||
|
||
/**
|
||
* URL to action
|
||
*
|
||
... | ... | |
* @param string $url
|
||
* @param string $data_name Name of data field, if empty name is set as data name
|
||
*/
|
||
public function link($url, $data_name = NULL)
|
||
public function link($url, $data_name = NULL, $data_title = NULL)
|
||
{
|
||
if (!text::starts_with($url, url::base()))
|
||
{
|
||
... | ... | |
|
||
$this->data_name = $data_name;
|
||
|
||
if (empty($data_title))
|
||
{
|
||
$data_title = $data_name;
|
||
}
|
||
|
||
$this->data_title = $data_title;
|
||
|
||
if (!empty($data_name))
|
||
{
|
||
$this->label = __(utf8::ucfirst(inflector::humanize($data_name)));
|
Také k dispozici: Unified diff
Release 1.1.0