public function setFromName($fieldName)
    {
        if (empty($this->name)) {
            $this->name = $fieldName;
        }
        $this->attrName = $this->getAttrName();
        $this->concrete = false === empty($this->getColumnName());

        if (empty($this->verboseName)) {
            $this->verboseName = ucwords(
                str_replace(
                    '_',
                    ' ',
                    $this->name
                )
            );
        }
    }
public function setFromName($fieldName)
    {
        if (empty($this->name)) {
            $this->name = $fieldName;
        }
        $this->attrName = $this->getAttrName();
        $this->concrete = false === empty($this->getColumnName());

        if (empty($this->verboseName)) {
            $this->verboseName = ucwords(
                str_replace(
                    '_',
                    ' ',
                    $this->name
                )
            );
        }
    }
public function setFromName ( $ fieldName ) { if ( empty ( $ this -> name ) ) { $ this -> name = $ fieldName ; } $ this -> attrName = $ this -> getAttrName ( ) ; $ this -> concrete = false === empty ( $ this -> getColumnName ( ) ) ; if ( empty ( $ this -> verboseName ) ) { $ this -> verboseName = ucwords ( str_replace ( '_' , ' ' , $ this -> name ) ) ; } }
set some values using the field name passed in. called in contributeToClass.

@param $fieldName

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
set some values using the field name passed in . called in contributeToClass .