DemoRegister::getTotalOfRecords PHP Method

getTotalOfRecords() public method

Displays the total number of records
public getTotalOfRecords ( )
    public function getTotalOfRecords()
    {
        // Returns the total number of records in paging
        if (Pagination::getPaging() == TRUE) {
            return Pagination::getTotalOfRecords();
        } else {
            return count(self::$hasRecords);
        }
    }

Usage Example

示例#1
0
        <div><?php 
echo $demo::FIRST_NAME;
?>
: <input type="text" name="firstname" /></div>
        <div><?php 
echo $demo::LAST_NAME;
?>
: <input type="text" name="lastname" /></div>
        <div><?php 
echo $demo::MAIL;
?>
: <input type="text" name="mail" /></div>
        <div><input type="submit" value="Register" /></div>
    </form>

    <?php 
echo $demo->getMessage();
?>

    <?php 
echo $demo::TOTAL_USERS;
?>
: <?php 
echo $demo->getTotalOfRecords();
?>

    <?php 
echo $demo->showRecords();
?>
</div>