public static function add(array $fields)
    {
        if (!Symphony::Database()->insert($fields, 'tbl_authors')) {
            return false;
        }

        $author_id = Symphony::Database()->getInsertID();

        return $author_id;
    }
public static function add(array $fields)
    {
        if (!Symphony::Database()->insert($fields, 'tbl_authors')) {
            return false;
        }

        $author_id = Symphony::Database()->getInsertID();

        return $author_id;
    }
public static function add ( array $ fields ) { if ( ! Symphony :: Database ( ) -> insert ( $ fields , 'tbl_authors' ) ) { return false ; } $ author_id = Symphony :: Database ( ) -> getInsertID ( ) ; return $ author_id ; }
Given an associative array of fields, insert them into the database
returning the resulting Author ID if successful, or false if there
was an error

@param array $fields
Associative array of field names => values for the Author object
@throws DatabaseException
@return integer|boolean
Returns an Author ID of the created Author on success, false otherwise.
Given an associative array of fields insert them into the database returning the resulting Author ID if successful or false if there was an error