Changeset 4371

Show
Ignore:
Timestamp:
05/17/08 01:21:57 (14 months ago)
Author:
jwage
Message:

fixes #1048

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Table.php

    r4351 r4371  
    18991899    } 
    19001900 
     1901    /** 
     1902     * Check if the table has a template name 
     1903     * 
     1904     * @param string $template  
     1905     * @return boolean $bool 
     1906     */ 
    19011907    public function hasTemplate($template) 
    19021908    { 
     
    19041910    } 
    19051911 
     1912    /** 
     1913     * Add template to the table 
     1914     * 
     1915     * @param string $template  
     1916     * @param Doctrine_Template $impl 
     1917     * @return Doctrine_Table 
     1918     */ 
    19061919    public function addTemplate($template, Doctrine_Template $impl) 
    19071920    { 
     
    19101923        return $this; 
    19111924    } 
     1925 
     1926    /** 
     1927     * Get all the generators for the table 
     1928     * 
     1929     * @return array $generators 
     1930     */ 
     1931     
    19121932    public function getGenerators() 
    19131933    { 
    19141934        return $this->_generators; 
    19151935    } 
     1936 
     1937    /** 
     1938     * Get generator instance for a passed name 
     1939     * 
     1940     * @param string $generator  
     1941     * @return Doctrine_Record_Generator $generator 
     1942     */ 
    19161943    public function getGenerator($generator) 
    19171944    { 
     
    19201947        } 
    19211948 
    1922         return $this->_generators[$plugin]; 
    1923     } 
    1924  
     1949        return $this->_generators[$generator]; 
     1950    } 
     1951 
     1952    /** 
     1953     * Check if a generator name exists 
     1954     * 
     1955     * @param string $generator  
     1956     * @return void 
     1957     */ 
    19251958    public function hasGenerator($generator) 
    19261959    { 
     
    19281961    } 
    19291962 
     1963    /** 
     1964     * Add a generate to the table instance 
     1965     * 
     1966     * @param Doctrine_Record_Generator $generator  
     1967     * @param string $name  
     1968     * @return Doctrine_Table 
     1969     */ 
    19301970    public function addGenerator(Doctrine_Record_Generator $generator, $name = null) 
    19311971    { 
     
    19371977        return $this; 
    19381978    } 
     1979 
    19391980    /** 
    19401981     * bindQueryParts