public function __construct($maxCount = self::DEFAULT_COUNT, $withInitParams = true)
 {
     parent::__construct();
     $this->maxCount = KT::tryGetInt($maxCount) ?: self::DEFAULT_COUNT;
     if ($withInitParams) {
         $this->initParams();
     }
 }
 /**
  * Základní presenter pro zobrazení dat termu
  * Pokud je zadanán term jako stdClass není potřeba taxonomy
  *
  * @author Tomáš Kocifaj
  * @link http://www.ktstudio.cz
  *
  * @param mixed \KT_Termable | stdClass $item
  * @param string $taxonomy
  */
 public function __construct($item = null, $taxonomy = null)
 {
     if ($item instanceof KT_Termable) {
         parent::__construct($item);
     } else {
         /**
          * Kvůli zpětné kompatibilitě, časem bude zrušeno -> používejte modely...
          */
         if (KT::issetAndNotEmpty($item)) {
             parent::__construct(new KT_WP_Term_Base_Model($item, $taxonomy));
         } else {
             parent::__construct(new KT_WP_Term_Base_Model(get_queried_object()));
         }
     }
 }
 /**
  * Základní presenter pro práci s daty postu
  * 
  * @author Tomáš Kocifaj
  * @link http://www.ktstudio.cz
  *
  * @param KT_Modelable|WP_Post $item
  * @param int $otherPostsLimit
  * 
  * @return \kt_post_type_presenter_base
  */
 function __construct($item = null, $otherPostsLimit = self::DEFAULT_OTHER_POSTS_LIMIT)
 {
     if (KT::issetAndNotEmpty($item)) {
         if ($item instanceof KT_Postable) {
             parent::__construct($item);
         } elseif ($item instanceof WP_Post) {
             /**
              * Kvůli zpětné kompatibilitě, časem bude zrušeno -> používejte modely...
              */
             parent::__construct(new KT_WP_Post_Base_Model($item));
             if (is_singular($item->post_type)) {
                 static::singularDetailPostProcess();
             }
         } else {
             throw new KT_Not_Supported_Exception("KT WP Post Base Presenter - Type of {$item}");
         }
     } else {
         parent::__construct();
     }
     $this->otherPostsLimit = KT::tryGetInt($otherPostsLimit);
 }
 public function __construct()
 {
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->initCurrentSidebar();
 }
 /**
  * Založení základního presenteru pro výpis komentářů postu
  * 
  * @author Martin Hlaváč
  * @link http://www.ktstudio.cz
  * 
  * @param int $postId
  */
 public function __construct($postId)
 {
     parent::__construct();
     $this->postId = KT::tryGetInt($postId);
 }
 function __construct(KT_Modelable $model = null)
 {
     parent::__construct($model);
 }