HosipLan

Untitled

Jul 29th, 2011
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Components\Front;
  4.  
  5. final class Calendar extends Nette\Application\UI\Control
  6. {
  7.    
  8.     /**
  9.      * Month of calendar.
  10.      * @var int
  11.      */
  12.     public $month;
  13.    
  14.     /**
  15.      * Year of calendar.
  16.      * @var int
  17.      */
  18.     public $year;
  19.    
  20.    
  21.     public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
  22.     {  
  23.     $this->year = date("Y");
  24.     $this->month = date("m");
  25.  
  26.     parent::_construct($parent, $name);
  27.     }
  28.    
  29.    
  30.     public function render()
  31.     {
  32.     $template = parent::createTemplate();
  33.     $template->setFile(__DIR__ . '/calendar.latte');
  34.     $template->render;
  35.     }
  36.    
  37.    
  38.     /**
  39.      * Reserver a date to appointment.
  40.      *
  41.      * @param string $date
  42.      */
  43.     public function handleSelect($date)
  44.     {
  45.    
  46.     }
  47.    
  48. }
Advertisement
Add Comment
Please, Sign In to add comment