Gc\Datatype\AbstractDatatype::getConfig PHP Méthode

getConfig() public méthode

Return configuration
public getConfig ( ) : array
Résultat array
    public function getConfig()
    {
        if (empty($this->config) or $this->configHasChanged) {
            $config = $this->getDatatypeModel()->getData('prevalue_value');
            if (!is_string($config) or !preg_match('/^(i|s|a|o|d)(.*);/si', $config)) {
                $this->config = $config;
            } else {
                $this->config = unserialize($config);
            }
            $this->configHasChanged = false;
        }
        return $this->config;
    }

Usage Example

Exemple #1
0
 /**
  * Save prevalue editor
  *
  * @param AbstractDatatype $datatype Datatype
  *
  * @return Model
  */
 public static function savePrevalueEditor(AbstractDatatype $datatype)
 {
     $datatype->getPrevalueEditor()->save();
     return $datatype->getConfig();
 }
All Usage Examples Of Gc\Datatype\AbstractDatatype::getConfig