feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
91
modules/backend/widgets/table/ServerEventDataSource.php
Normal file
91
modules/backend/widgets/table/ServerEventDataSource.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<?php namespace Backend\Widgets\Table;
|
||||
|
||||
/**
|
||||
* The server-event data source for the Table widget.
|
||||
*/
|
||||
class ServerEventDataSource extends DataSourceBase
|
||||
{
|
||||
use \Winter\Storm\Support\Traits\Emitter;
|
||||
|
||||
/**
|
||||
* Return records from the data source.
|
||||
* @param integer $offset Specifies the offset of the first record to return, zero-based.
|
||||
* @param integer $count Specifies the number of records to return.
|
||||
* @return array Returns the records.
|
||||
* If there are no more records, returns an empty array.
|
||||
*/
|
||||
public function getRecords($offset, $count)
|
||||
{
|
||||
return $this->fireEvent('data.getRecords', [$offset, $count], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Identical to getRecords except provided with a search query.
|
||||
*/
|
||||
public function searchRecords($query, $offset, $count)
|
||||
{
|
||||
return $this->fireEvent('data.searchRecords', [$query, $offset, $count], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a total number of records in the data source.
|
||||
* @return integer
|
||||
*/
|
||||
public function getCount()
|
||||
{
|
||||
return $this->fireEvent('data.getCount', [], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a record in the data source.
|
||||
* @return void
|
||||
*/
|
||||
public function createRecord($data, $placement, $relativeToKey)
|
||||
{
|
||||
return $this->fireEvent('data.createRecord', [$data, $placement, $relativeToKey]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a record in the data source.
|
||||
* @return void
|
||||
*/
|
||||
public function updateRecord($key, $data)
|
||||
{
|
||||
$this->fireEvent('data.updateRecord', [$key, $data]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a record from the data source.
|
||||
* @return array Returns the remaining records.
|
||||
*/
|
||||
public function deleteRecord($key)
|
||||
{
|
||||
return $this->fireEvent('data.deleteRecord', [$key], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes records in the data source.
|
||||
* The method doesn't replace existing records and
|
||||
* could be called multiple times in order to fill
|
||||
* the data source.
|
||||
* @param array $records Records to initialize in the data source.
|
||||
*/
|
||||
public function initRecords($records)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all records from the data source.
|
||||
*/
|
||||
public function purge()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all records in the data source.
|
||||
* This method is specific only for the client memory data sources.
|
||||
*/
|
||||
public function getAllRecords()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user