src/snac/server/database/SQL.php
/**
     * Count vocabulary rows
     *
     * Small utility function to count rows in table vocabulary. Currently only used in DBUtilTest.php
     *
     * @return int Count of number of rows in table vocabulary.
     */
Count vocabulary rows
Small utility function to count rows in table vocabulary. Currently only used in DBUtilTest.php

@return int Count of number of rows in table vocabulary.
Count vocabulary rows Small utility function to count rows in table vocabulary . Currently only used in DBUtilTest . php @return int Count of number of rows in table vocabulary .
public function countVocabulary()
    {
        $result = $this->sdb->query('select count(*) as count from vocabulary',
                                    array());
        $row = $this->sdb->fetchrow($result);
        return $row['count'];
    }
public function countVocabulary ( ) { $ result = $ this -> sdb -> query ( 'select count(*) as count from vocabulary' , array ( ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; return $ row [ 'count' ] ; }
Count vocabulary rows
 Small utility function to count rows in table vocabulary.
Count vocabulary rows Small utility function to count rows in table vocabulary .
/*
         * Note: query() as opposed to prepare() and execute()
         * query() has two args:
         * 1) a string (sql query)
         * 2) an array of the vars that match the query placeholders, empty here because there are no placeholders.
         */