FullName::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: egorov
5
 * Date: 21.04.2015
6
 * Time: 14:52
7
 */
8
namespace samsoncms\app\user\field;
9
10
use samsonframework\core\RenderInterface;
11
use samsonframework\orm\QueryInterface;
12
use samsoncms\field\Generic;
13
14
/**
15
 * Overridden full name field
16
 * @package samsoncms\app\user
17
 */
18
class FullName extends Generic
19
{
20
    /** @var string Path to field view file */
21
    protected $innerView = 'www/collection/field/fullname';
22
23
    /**  Overload parent constructor and pass needed params there */
24
    public function __construct()
25
    {
26
        parent::__construct('fio', t('ФИО', true), 0, 'fio', false);
0 ignored issues
show
Deprecated Code introduced by
The function t() has been deprecated with message: Should be used as $this->system->getContainer()->geti18n()->translate()|plural()

This function has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.

Loading history...
27
    }
28
}
29