public function presetProperties(array &$properties)
    {
        $definitions = Config::getCommonDefinitions();
		
        foreach ($definitions as $definition) {
            $patterns = $this->getArrayByKey($definition, 'match');

            if (Helpers::strIs($patterns, $properties['name'])) {
                //auto add any config from the master config
                $settings = $this->getArrayByKey($definition, 'set');
				
                foreach ($settings as $key => $setting) {
					
                    if (!Helpers::isKeyExists($properties, $key) || empty($properties[$key])) {
                        $properties[$key] = $setting;
                    }
                }
            }
        }

        return $this;
    }
public function presetProperties(array &$properties)
    {
        $definitions = Config::getCommonDefinitions();
		
        foreach ($definitions as $definition) {
            $patterns = $this->getArrayByKey($definition, 'match');

            if (Helpers::strIs($patterns, $properties['name'])) {
                //auto add any config from the master config
                $settings = $this->getArrayByKey($definition, 'set');
				
                foreach ($settings as $key => $setting) {
					
                    if (!Helpers::isKeyExists($properties, $key) || empty($properties[$key])) {
                        $properties[$key] = $setting;
                    }
                }
            }
        }

        return $this;
    }
public function presetProperties ( array & $ properties ) { $ definitions = Config :: getCommonDefinitions ( ) ; foreach ( $ definitions as $ definition ) { $ patterns = $ this -> getArrayByKey ( $ definition , 'match' ) ; if ( Helpers :: strIs ( $ patterns , $ properties [ 'name' ] ) ) { //auto add any config from the master config $ settings = $ this -> getArrayByKey ( $ definition , 'set' ) ; foreach ( $ settings as $ key => $ setting ) { if ( ! Helpers :: isKeyExists ( $ properties , $ key ) || empty ( $ properties [ $ key ] ) ) { $ properties [ $ key ] = $ setting ; } } } } return $ this ; }
Get the properties after applying the predefined keys.

@param array $properties
@param array $languages

@return $this
Get the properties after applying the predefined keys .