public function decode_content($content) {
        if (!$content = $this->precheck_content($content)) { // Perform some prechecks
            return false;
        }
        // Iterate over all rules, chaining results
        foreach ($this->rules as $rule) {
            $content = $rule->decode($content);
        }
        return $content;
    }
public function decode_content($content) {
        if (!$content = $this->precheck_content($content)) { // Perform some prechecks
            return false;
        }
        // Iterate over all rules, chaining results
        foreach ($this->rules as $rule) {
            $content = $rule->decode($content);
        }
        return $content;
    }
public function decode_content ( $ content ) { if ( ! $ content = $ this -> precheck_content ( $ content ) ) { // Perform some prechecks return false ; } // Iterate over all rules, chaining results foreach ( $ this -> rules as $ rule ) { $ content = $ rule -> decode ( $ content ) ; } return $ content ; }
Receive content from restore_decode_content objects
and apply all the restore_decode_rules to them
Receive content from restore_decode_content objects and apply all the restore_decode_rules to them