src/Fields/Bundle.php
public function save($object, $values)
    {
        $values = isset($values[$this->id])
            ? $values[$this->id]
            : null;

        $values = is_array($values)
            ? array_values($values)
            : [];

        // Filter
        $values = apply_filters('cuztom_bundle_save_values', $values, $this);

        // Do
        do_action('cuztom_bundle_save', $this);

        foreach ($values as $cell => $fields) {
            foreach ($fields as $id => $value) {
                $values[$this->id][$cell][$id] = $this->getFirstItem()->getField($id)->parseValue($value);
            }
        }

        parent::save($object, $values);
    }
public function save($object, $values)
    {
        $values = isset($values[$this->id])
            ? $values[$this->id]
            : null;

        $values = is_array($values)
            ? array_values($values)
            : [];

        // Filter
        $values = apply_filters('cuztom_bundle_save_values', $values, $this);

        // Do
        do_action('cuztom_bundle_save', $this);

        foreach ($values as $cell => $fields) {
            foreach ($fields as $id => $value) {
                $values[$this->id][$cell][$id] = $this->getFirstItem()->getField($id)->parseValue($value);
            }
        }

        parent::save($object, $values);
    }
public function save ( $ object , $ values ) { $ values = isset ( $ values [ $ this -> id ] ) ? $ values [ $ this -> id ] : null ; $ values = is_array ( $ values ) ? array_values ( $ values ) : [ ] ; // Filter $ values = apply_filters ( 'cuztom_bundle_save_values' , $ values , $ this ) ; // Do do_action ( 'cuztom_bundle_save' , $ this ) ; foreach ( $ values as $ cell => $ fields ) { foreach ( $ fields as $ id => $ value ) { $ values [ $ this -> id ] [ $ cell ] [ $ id ] = $ this -> getFirstItem ( ) -> getField ( $ id ) -> parseValue ( $ value ) ; } } parent :: save ( $ object , $ values ) ; }
Save bundle meta.

@param int   $object
@param array $values
Save bundle meta .