本文整理匯總了PHP中ProductCategory::getDescription方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProductCategory::getDescription方法的具體用法?PHP ProductCategory::getDescription怎麽用?PHP ProductCategory::getDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ProductCategory
的用法示例。
在下文中一共展示了ProductCategory::getDescription方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _generateCategoryData
/**
* This function generates the CategoryData for the Product Category insert / update to Magento
*
* @param ProductCategory $productCategory
*
* @return Array
*/
private function _generateCategoryData(ProductCategory $productCategory)
{
return array('name' => trim($productCategory->getName()), 'is_active' => (int) $productCategory->getActive(), 'available_sort_by' => array('created_at'), 'custom_design' => null, 'custom_apply_to_products' => null, 'custom_design_from' => null, 'custom_design_to' => null, 'custom_layout_update' => null, 'default_sort_by' => 'position', 'description' => trim($productCategory->getDescription()), 'display_mode' => null, 'is_anchor' => (int) $productCategory->getIsAnchor(), 'landing_page' => null, 'meta_description' => trim($productCategory->getDescription()), 'meta_keywords' => trim($productCategory->getDescription()), 'meta_title' => trim($productCategory->getName()), 'page_layout' => 'No layout updates', 'url_key' => trim($productCategory->getUrlKey()), 'include_in_menu' => (int) $productCategory->getIncludeInMenu());
}