| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace zin;
- require_once dirname(__DIR__) . DS . 'fileselector' . DS . 'v1.php';
- class imageSelector extends fileSelector
- {
- /**
- * @var mixed[]
- */
- protected static $defaultProps = array
- (
- 'mode' => 'grid'
- );
- /**
- * Build the widget.
- *
- * @access protected
- * @return node
- */
- protected function build()
- {
- return zui::imageSelector(inherit($this));
- }
- protected function created()
- {
- if(!$this->hasProp('tip'))
- {
- global $lang;
- $this->setProp('tip', $lang->uploadImagesTip);
- }
- parent::created();
- }
- }
|