/** * @return int[] The array of the WP categories for this DLE post. */ public function LoadWpTermsArray() { $objWpTermsArray = array(); $intDleCategoryIdArray = explode(",", $this->Category); if ($intDleCategoryIdArray) { foreach ($intDleCategoryIdArray as $intDleCategoryId) { $objDleCategory = DleCategory::Load($intDleCategoryId); if (!$objDleCategory) { continue; } $objWpTerms = $objDleCategory->LoadWpTerms(); if (!$objWpTerms) { continue; } $objWpTermsArray[$objWpTerms->TermId] = $objWpTerms; } } return $objWpTermsArray; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objParentidObject) { $objObject->objParentidObject = DleCategory::GetSoapObjectFromObject($objObject->objParentidObject, false); } else { if (!$blnBindRelatedObjects) { $objObject->intParentid = null; } } return $objObject; }
/** * @return int The number of object in the DLE database to process. */ protected function get_process_objects_count() { return DleCategory::CountAll(); }