code/libraries/joomlatools/library/database/rowset/abstract.php
public function create(array $properties = array(), $status = null)
    {
        if($this->_prototypable)
        {
            if(!$this->_prototype instanceof KDatabaseRowInterface) {
                $this->_prototype = $this->getTable()->createRow();
            }

            $row = clone $this->_prototype;

            $row->setStatus($status);
            $row->setProperties($properties, $row->isNew());
        }
        else
        {
            $config = array(
                'data'   => $properties,
                'status' => $status,
            );

            $row = $this->getTable()->createRow($config);
        }

        //Insert the row into the rowset
        $this->insert($row);

        return $row;
    }
public function create(array $properties = array(), $status = null)
    {
        if($this->_prototypable)
        {
            if(!$this->_prototype instanceof KDatabaseRowInterface) {
                $this->_prototype = $this->getTable()->createRow();
            }

            $row = clone $this->_prototype;

            $row->setStatus($status);
            $row->setProperties($properties, $row->isNew());
        }
        else
        {
            $config = array(
                'data'   => $properties,
                'status' => $status,
            );

            $row = $this->getTable()->createRow($config);
        }

        //Insert the row into the rowset
        $this->insert($row);

        return $row;
    }
public function create ( array $ properties = array ( ) , $ status = null ) { if ( $ this -> _prototypable ) { if ( ! $ this -> _prototype instanceof KDatabaseRowInterface ) { $ this -> _prototype = $ this -> getTable ( ) -> createRow ( ) ; } $ row = clone $ this -> _prototype ; $ row -> setStatus ( $ status ) ; $ row -> setProperties ( $ properties , $ row -> isNew ( ) ) ; } else { $ config = array ( 'data' => $ properties , 'status' => $ status , ) ; $ row = $ this -> getTable ( ) -> createRow ( $ config ) ; } //Insert the row into the rowset $ this -> insert ( $ row ) ; return $ row ; }
Create a new row and insert it

This function will either clone the row prototype, or create a new instance of the row object for each row
being inserted. By default the prototype will be cloned.

@param   array   $properties The entity properties
@param   string  $status     The entity status
@return  KModelEntityComposite
Create a new row and insert it