diff --git a/lib/Varien/Data/Collection/Db.php b/lib/Varien/Data/Collection/Db.php index 8afeb706b63..c1e789a31d8 100644 --- a/lib/Varien/Data/Collection/Db.php +++ b/lib/Varien/Data/Collection/Db.php @@ -278,7 +278,7 @@ public function setOrder($field, $direction = self::SORT_ORDER_DESC) * * @param string $field * @param string $direction - * @return Varien_Data_Collection_Db + * @return $this */ public function addOrder($field, $direction = self::SORT_ORDER_DESC) { @@ -290,7 +290,7 @@ public function addOrder($field, $direction = self::SORT_ORDER_DESC) * * @param string $field * @param string $direction - * @return Varien_Data_Collection_Db + * @return $this */ public function unshiftOrder($field, $direction = self::SORT_ORDER_DESC) { @@ -327,7 +327,7 @@ private function _setOrder($field, $direction, $unshift = false) /** * Render sql select conditions * - * @return Varien_Data_Collection_Db + * @return $this */ protected function _renderFilters() { @@ -500,7 +500,7 @@ protected function _getConditionFieldName($fieldName) /** * Render sql select orders * - * @return Varien_Data_Collection_Db + * @return $this */ protected function _renderOrders() { @@ -517,7 +517,7 @@ protected function _renderOrders() /** * Render sql select limit * - * @return Varien_Data_Collection_Db + * @return $this */ protected function _renderLimit() { @@ -533,7 +533,7 @@ protected function _renderLimit() * * @param bool $flag * - * @return Varien_Data_Collection_Db + * @return $this */ public function distinct($flag) { @@ -544,7 +544,7 @@ public function distinct($flag) /** * Before load action * - * @return Varien_Data_Collection_Db + * @return $this */ protected function _beforeLoad() { diff --git a/lib/Varien/Data/Form.php b/lib/Varien/Data/Form.php index 5a003e61efd..1b623396c48 100644 --- a/lib/Varien/Data/Form.php +++ b/lib/Varien/Data/Form.php @@ -34,6 +34,8 @@ * @method string getHtmlIdPrefix() * @method string getHtmlIdSuffix() * @method string getFieldNameSuffix() + * @method setDataObject(Mage_Core_Model_Abstract $value) + * @method $this setFieldNameSuffix(string $value) */ class Varien_Data_Form extends Varien_Data_Form_Abstract { @@ -129,7 +131,7 @@ public function getHtmlAttributes() * @return Varien_Data_Form * @throws Exception */ - public function addElement(Varien_Data_Form_Element_Abstract $element, $after = false) + public function addElement(Varien_Data_Form_Element_Abstract $element, $after=false) { $this->checkElementId($element->getId()); parent::addElement($element, $after); @@ -167,7 +169,7 @@ public function addElementToCollection($element) public function checkElementId($elementId) { if ($this->_elementIdExists($elementId)) { - throw new Exception('Element with id "' . $elementId . '" already exists'); + throw new Exception('Element with id "'.$elementId.'" already exists'); } return true; } @@ -302,10 +304,10 @@ public function toHtml() Varien_Profiler::start('form/toHtml'); $html = ''; if ($useContainer = $this->getUseContainer()) { - $html .= '