Google Groups Home
Help | Sign in
r4371 - branches/0.11/lib/Doctrine
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
no-re...@phpdoctrine.org  
View profile
 More options May 16, 9:21 pm
From: no-re...@phpdoctrine.org
Date: Sat, 17 May 2008 02:21:59 +0100
Local: Fri, May 16 2008 9:21 pm
Subject: r4371 - branches/0.11/lib/Doctrine
Author: jwage
Date: 2008-05-17 02:21:57 +0100 (Sat, 17 May 2008)
New Revision: 4371

Modified:
   branches/0.11/lib/Doctrine/Table.php
Log:
fixes #1048

Modified: branches/0.11/lib/Doctrine/Table.php
===================================================================
--- branches/0.11/lib/Doctrine/Table.php        2008-05-17 01:17:12 UTC (rev 4370)
+++ branches/0.11/lib/Doctrine/Table.php        2008-05-17 01:21:57 UTC (rev 4371)
@@ -1898,35 +1898,75 @@
         return $this->_templates[$template];
     }

+    /**
+     * Check if the table has a template name
+     *
+     * @param string $template
+     * @return boolean $bool
+     */
     public function hasTemplate($template)
     {
         return isset($this->_templates[$template]);
     }

+    /**
+     * Add template to the table
+     *
+     * @param string $template
+     * @param Doctrine_Template $impl
+     * @return Doctrine_Table
+     */
     public function addTemplate($template, Doctrine_Template $impl)
     {
         $this->_templates[$template] = $impl;

         return $this;
     }
+
+    /**
+     * Get all the generators for the table
+     *
+     * @return array $generators
+     */
+    
     public function getGenerators()
     {
         return $this->_generators;
     }
+
+    /**
+     * Get generator instance for a passed name
+     *
+     * @param string $generator
+     * @return Doctrine_Record_Generator $generator
+     */
     public function getGenerator($generator)
     {
         if ( ! isset($this->_generators[$generator])) {
             throw new Doctrine_Table_Exception('Generator ' . $generator . ' not loaded');
         }

-        return $this->_generators[$plugin];
+        return $this->_generators[$generator];
     }

+    /**
+     * Check if a generator name exists
+     *
+     * @param string $generator
+     * @return void
+     */
     public function hasGenerator($generator)
     {
         return isset($this->_generators[$generator]);
     }

+    /**
+     * Add a generate to the table instance
+     *
+     * @param Doctrine_Record_Generator $generator
+     * @param string $name
+     * @return Doctrine_Table
+     */
     public function addGenerator(Doctrine_Record_Generator $generator, $name = null)
     {
         if ($name === null) {
@@ -1936,6 +1976,7 @@
         }
         return $this;
     }
+
     /**
      * bindQueryParts
      * binds query parts to given component


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google