Login   Register  
PHP Classes
elePHPant
Icontem

File: DATA/SQLVarchar.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Alterisio  >  DATA  >  DATA/SQLVarchar.php  >  Download  
File: DATA/SQLVarchar.php
Role: Class source
Content type: text/plain
Description: ANSI SQL Character Varying data type representation.
Class: DATA
Access data stored in MySQL tables like arrays
Author: By
Last change: + anonymous access
Date: 6 years ago
Size: 558 bytes
 

Contents

Class file image Download
<?php
/**
 * @package DATA
 */

/**
 * ANSI SQL Character Varying data type representation.
 * 
 * When inboxing, if the field cannot hold the desired value
 * {@link DATA_StringTooLarge} is thrown.
 */
class DATA_SQLVarchar extends DATA_SQLChar {
    
/**
     * Returns the length of the string stored.
     * 
     * @return int Length of the string.
     */
    
public function getStringLength() {
        return 
strlen($this->chars);
    }
    
    public function 
__toString() {
        return (string)
$this->chars;
    }
}
?>