Ejemplo n.º 1
0
 /**
  * Fetches dummy menu item's entity
  * 
  * @param string $categoryId
  * @param string $parentId
  * @return \Krystal\Stdlib\VirtualEnity
  */
 public function fetchDummy($categoryId = null, $parentId = null)
 {
     $item = new VirtualEntity();
     $item->setCategoryId($categoryId)->setParentId($parentId)->setHasLink(false)->setPublished(true)->setOpenInNewWindow(false);
     return $item;
 }