code/libraries/joomlatools/library/model/entity/composite.php
public function save()
    {
        $result = false;

        if (count($this))
        {
            $result = true;

            foreach ($this as $entity)
            {
                if (!$entity->save())
                {
                    // Set current entity status message as collection status message.
                    $this->setStatusMessage($entity->getStatusMessage());
                    $result = false;
                }
            }
        }

        return $result;
    }
public function save()
    {
        $result = false;

        if (count($this))
        {
            $result = true;

            foreach ($this as $entity)
            {
                if (!$entity->save())
                {
                    // Set current entity status message as collection status message.
                    $this->setStatusMessage($entity->getStatusMessage());
                    $result = false;
                }
            }
        }

        return $result;
    }
public function save ( ) { $ result = false ; if ( count ( $ this ) ) { $ result = true ; foreach ( $ this as $ entity ) { if ( ! $ entity -> save ( ) ) { // Set current entity status message as collection status message. $ this -> setStatusMessage ( $ entity -> getStatusMessage ( ) ) ; $ result = false ; } } } return $ result ; }
Store all entities in the collection to the data store

@return boolean  If successful return TRUE, otherwise FALSE
Store all entities in the collection to the data store