Changeset 4371
- Timestamp:
- 05/17/08 01:21:57 (14 months ago)
- Files:
-
- 1 modified
-
branches/0.11/lib/Doctrine/Table.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Table.php
r4351 r4371 1899 1899 } 1900 1900 1901 /** 1902 * Check if the table has a template name 1903 * 1904 * @param string $template 1905 * @return boolean $bool 1906 */ 1901 1907 public function hasTemplate($template) 1902 1908 { … … 1904 1910 } 1905 1911 1912 /** 1913 * Add template to the table 1914 * 1915 * @param string $template 1916 * @param Doctrine_Template $impl 1917 * @return Doctrine_Table 1918 */ 1906 1919 public function addTemplate($template, Doctrine_Template $impl) 1907 1920 { … … 1910 1923 return $this; 1911 1924 } 1925 1926 /** 1927 * Get all the generators for the table 1928 * 1929 * @return array $generators 1930 */ 1931 1912 1932 public function getGenerators() 1913 1933 { 1914 1934 return $this->_generators; 1915 1935 } 1936 1937 /** 1938 * Get generator instance for a passed name 1939 * 1940 * @param string $generator 1941 * @return Doctrine_Record_Generator $generator 1942 */ 1916 1943 public function getGenerator($generator) 1917 1944 { … … 1920 1947 } 1921 1948 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 */ 1925 1958 public function hasGenerator($generator) 1926 1959 { … … 1928 1961 } 1929 1962 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 */ 1930 1970 public function addGenerator(Doctrine_Record_Generator $generator, $name = null) 1931 1971 { … … 1937 1977 return $this; 1938 1978 } 1979 1939 1980 /** 1940 1981 * bindQueryParts