public function addCustomFields($fieldName, $type, $addIndex)
    {
        if (!$this->table->hasColumn($fieldName)) {
            $this->{$this->typeMap[$type]}($fieldName);
        }

        if ($addIndex) {
            $this->table->addIndex([$fieldName]);
        }
    }
public function addCustomFields($fieldName, $type, $addIndex)
    {
        if (!$this->table->hasColumn($fieldName)) {
            $this->{$this->typeMap[$type]}($fieldName);
        }

        if ($addIndex) {
            $this->table->addIndex([$fieldName]);
        }
    }
public function addCustomFields ( $ fieldName , $ type , $ addIndex ) { if ( ! $ this -> table -> hasColumn ( $ fieldName ) ) { $ this -> { $ this -> typeMap [ $ type ] } ( $ fieldName ) ; } if ( $ addIndex ) { $ this -> table -> addIndex ( [ $ fieldName ] ) ; } }
Add the contenttype's specific fields.

@param string $fieldName
@param string $type
@param bool   $addIndex
Add the contenttype s specific fields .