src/base/Filter.php
public function getChain()
    {
        $data = [];
        // get the chain from the effect, must be an array
        foreach ($this->chain() as $chainRow) {
            // set variables from chain array
            $effectIdentifier = $chainRow[0];
            $effectParams = $chainRow[1];
            // find the effect data for the effect identifier
            $effect = $this->findEffect($effectIdentifier);
            // get all params from the effect chain and verify if they are valid
            foreach ($effectParams as $effectParamVar => $effectParamValue) {
                if (!in_array($effectParamVar, $this->getEffectParamsList(Json::decode($effect['imagine_json_params'])))) {
                    throw new Exception("Effect argument '$effectParamVar' does not exist in the effect definition of '{$effect['name']}'.");
                }
            }
            // create array with parsed effect id
            $data[] = ['effect_id' => $effect['id'], 'effect_json_values' => Json::encode($effectParams)];
        }

        return $data;
    }
public function getChain()
    {
        $data = [];
        // get the chain from the effect, must be an array
        foreach ($this->chain() as $chainRow) {
            // set variables from chain array
            $effectIdentifier = $chainRow[0];
            $effectParams = $chainRow[1];
            // find the effect data for the effect identifier
            $effect = $this->findEffect($effectIdentifier);
            // get all params from the effect chain and verify if they are valid
            foreach ($effectParams as $effectParamVar => $effectParamValue) {
                if (!in_array($effectParamVar, $this->getEffectParamsList(Json::decode($effect['imagine_json_params'])))) {
                    throw new Exception("Effect argument '$effectParamVar' does not exist in the effect definition of '{$effect['name']}'.");
                }
            }
            // create array with parsed effect id
            $data[] = ['effect_id' => $effect['id'], 'effect_json_values' => Json::encode($effectParams)];
        }

        return $data;
    }
public function getChain ( ) { $ data = [ ] ; // get the chain from the effect, must be an array foreach ( $ this -> chain ( ) as $ chainRow ) { // set variables from chain array $ effectIdentifier = $ chainRow [ 0 ] ; $ effectParams = $ chainRow [ 1 ] ; // find the effect data for the effect identifier $ effect = $ this -> findEffect ( $ effectIdentifier ) ; // get all params from the effect chain and verify if they are valid foreach ( $ effectParams as $ effectParamVar => $ effectParamValue ) { if ( ! in_array ( $ effectParamVar , $ this -> getEffectParamsList ( Json :: decode ( $ effect [ 'imagine_json_params' ] ) ) ) ) { throw new Exception ( "Effect argument '$effectParamVar' does not exist in the effect definition of '{$effect['name']}'." ) ; } } // create array with parsed effect id $ data [ ] = [ 'effect_id' => $ effect [ 'id' ] , 'effect_json_values' => Json :: encode ( $ effectParams ) ] ; } return $ data ; }
Returns a parsed effect chain for the current Filter. The method verifys if the provieded effect
parameters are available in the effect defintions of luya.

@return array Each row of the array must have "effect_id" and "effect_json_values" key.
@throws \luya\Exception When effect option could be found in the effect defintions.
Returns a parsed effect chain for the current Filter . The method verifys if the provieded effect parameters are available in the effect defintions of luya .