/** * @param \Elastica_Index $index * @param Parameters $parameter */ public function __construct(\Elastica_Index $index, Parameters $parameters) { $this->addColumn('name', t('Area name'), true, 'link'); $this->addColumn('town', t('Town name')); $this->addColumn('canton', t('Canton')); $this->addColumn('user', t('User')); parent::__construct($index, 'area', $parameters); }
/** * Constructor. * * @access public * @param int $latency Latency (in seconds). * @return void */ public function __construct($latency = null) { parent::__construct(); $this->_on = new \Hoa\Core\Event\Listener($this, array('new', 'modify', 'move')); if (null !== $latency) { $this->setLatency($latency); } return; }
/** * 构造函数 */ public function __construct() { parent::__construct(); $this->isInited = false; $this->urls = array(); $this->max = 3; $this->downloadPicture = false; foreach (self::EVENTS as $event) { $this->listeners[$event] = array(); } }
/** * @param \Elastica_Index $index * @param Parameters $parameter */ public function __construct(\Elastica_Index $index, Parameters $parameters) { $this->addColumn('name_la', t('Latin name')); $this->addColumn('name', t('German name')); $this->addColumn('user', t('User')); $this->addColumn('inventory', t('Inventory'), true, 'link', array($this, 'permission')); $this->addColumn('town', t('Town name')); $this->addColumn('canton', t('Canton')); $this->addColumn('date', t('Observation date'), true, 'date'); $this->addColumn('redlist', t('Red list'), false, 'translate'); Finder::__construct($index, 'sighting', $parameters); }
public function __construct($table = null) { parent::__construct('import_tmp'); }
/** * @param \Elastica_Index $index * @param Parameters $parameter */ public function __construct(\Elastica_Index $index, Parameters $parameters) { $this->addColumn('id', 'Default'); parent::__construct($index, 'image', $parameters); }