コード例 #1
0
ファイル: TRatingList.php プロジェクト: pradosoft/prado
 /**
  * Sets the default repeat direction to horizontal.
  */
 public function __construct()
 {
     parent::__construct();
     $this->setRepeatDirection(TRepeatDirection::Horizontal);
 }
コード例 #2
0
 /**
  * Creates a new callback control, sets the adapter to
  * TActiveListControlAdapter. If you override this class, be sure to set the
  * adapter appropriately by, for example, by calling this constructor.
  */
 public function __construct()
 {
     $this->setAdapter(new TActiveListControlAdapter($this));
     $this->setAutoPostBack(true);
     parent::__construct();
 }