Skip to content

Commit 10ed208

Browse files
authored
Mini DOCBlock update (OpenMage#4415)
* fixes * revert doc to object
1 parent a116622 commit 10ed208

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

app/Mage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ public static function getControllerInstance($class, $request, $response, array
577577
}
578578

579579
/**
580-
* Retrieve resource vodel object singleton
580+
* Retrieve resource model object singleton
581581
*
582582
* @param string $modelClass
583583
* @return object

app/code/core/Mage/Catalog/Model/Category.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
* @method $this setIncludeInMenu(int $value)
4646
* @method bool getInitialSetupFlag()
4747
* @method $this setInitialSetupFlag(bool $value)
48-
* @method bool getIsActive()
49-
* @method $this setIsActive(bool $value)
50-
* @method bool getIsAnchor()
51-
* @method $this setIsAnchor(bool $value)
48+
* @method int getIsActive()
49+
* @method $this setIsActive(int $value)
50+
* @method int getIsAnchor()
51+
* @method $this setIsAnchor(int $value)
5252
* @method $this setIsChangedProductList(bool $bool)
5353
*
5454
* @method int getLandingPage()

app/code/core/Mage/Core/Model/Abstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ protected function _beforeSave()
441441
* Get list of cache tags applied to model object.
442442
* Return false if cache tags are not supported by model
443443
*
444-
* @return array | false
444+
* @return array|false
445445
*/
446446
public function getCacheTags()
447447
{
@@ -467,7 +467,7 @@ public function getCacheTags()
467467
/**
468468
* Get cache tags associated with object id
469469
*
470-
* @return array|bool
470+
* @return array|false
471471
*/
472472
public function getCacheIdTags()
473473
{

app/code/core/Mage/Core/Model/Resource/Resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function _loadVersionData($needType)
8484
* Get Module version from DB
8585
*
8686
* @param string $resName
87-
* @return bool|string
87+
* @return string|false
8888
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
8989
*/
9090
public function getDbVersion($resName)

app/code/core/Mage/Directory/Model/Resource/Country/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @package Mage_Directory
2222
*
2323
* @property Mage_Directory_Model_Country[] $_items
24+
* @method Mage_Directory_Model_Country getFirstItem()
25+
* @method Mage_Directory_Model_Country getLastItem()
2426
*/
2527
class Mage_Directory_Model_Resource_Country_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract
2628
{

app/code/core/Mage/Eav/Model/Entity/Attribute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*
2323
* @method Mage_Eav_Model_Resource_Entity_Attribute _getResource()
2424
* @method Mage_Eav_Model_Resource_Entity_Attribute getResource()
25+
* @method Mage_Eav_Model_Resource_Entity_Attribute_Collection getCollection()
2526
* @method Mage_Eav_Model_Resource_Entity_Attribute_Collection getResourceCollection()
2627
*
2728
* @method int getAttributeGroupId()

app/code/core/Mage/Rss/Block/Catalog/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function _toHtml()
5555
if ($category->getId()) {
5656
$layer = Mage::getSingleton('catalog/layer')->setStore($storeId);
5757
//want to load all products no matter anchor or not
58-
$category->setIsAnchor(true);
58+
$category->setIsAnchor(1);
5959
$newurl = $category->getUrl();
6060
$title = $category->getName();
6161
$data = ['title' => $title,

0 commit comments

Comments
 (0)