/**
  * Objektu automaticky nastaví query po selekci stránek
  * 
  * @return \KT_Page_Field
  */
 private function pageQueryArgsInit()
 {
     $args = array("post_type" => KT_WP_PAGE_KEY, "posts_per_page" => self::DEFAUL_PAGE_COUNT, "post_status" => "publish", "orderby" => "parent title", "order" => KT_Repository::ORDER_ASC);
     if (KT::issetAndNotEmpty($this->getParentPage())) {
         $args["post_parent"] = $this->getParentPage();
     }
     $dataManager = new KT_Custom_Post_Data_Manager();
     $dataManager->setQueryArgs($args);
     $this->setDataManager($dataManager);
 }
 /**
  * Objektu automaticky nastaví query po selekci stránek
  * 
  * @return \KT_Page_Field
  */
 private function pageQueryArgsInit()
 {
     $args = array("post_type" => KT_WP_PAGE_KEY, "posts_per_page" => self::DEFAUL_PAGE_COUNT, "post_status" => "publish", "orderby" => "parent title", "order" => KT_Repository::ORDER_ASC);
     $parentPage = $this->getParentPage();
     if (KT::issetAndNotEmpty($parentPage)) {
         $args["post_parent"] = $parentPage;
     }
     $pageTemplate = $this->getPageTemplate();
     if (KT::issetAndNotEmpty($pageTemplate)) {
         $args["meta_query"] = array(array("key" => KT_WP_META_KEY_PAGE_TEMPLATE, "value" => "{$pageTemplate}"));
     }
     $dataManager = new KT_Custom_Post_Data_Manager();
     $dataManager->setQueryArgs($args);
     $this->setDataManager($dataManager);
 }