12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
-
- namespace App\Http\Controller;
-
- use Luticate\Utils\Dbo\LuIntDbo;
- use Luticate\Utils\LuController;
- use App\Http\Business\DnsDomainsBusiness;
- use App\Http\DBO\DnsDomainsDbo;
-
- class DnsDomainsController extends LuController {
- protected function getBusiness()
- {
- return new DnsDomainsBusiness();
- }
-
- /**
- * Get all dns domains
- * @param int $page The page number, 0 based
- * @param int $perPage Items per page
- * @param string $query The filter query
- * @return \App\Http\DBO\DnsDomainsDbo[]
- */
- public function getAll($page = 0, $perPage = 20000000, $query = "")
- {
- return DnsDomainsBusiness::getAll($page, $perPage, $query);
- }
-
- public function add(DnsDomainsDbo $domain)
- {
- return DnsDomainsBusiness::add($domain);
- }
-
- public function del(LuIntDbo $domain_id)
- {
- return DnsDomainsBusiness::deleteById($domain_id->getInt());
- }
-
- public function edit(LuIntDbo $domain_id, DnsDomainsDbo $domain)
- {
- $domain->setId($domain_id->getInt());
- return DnsDomainsBusiness::edit($domain);
- }
- }
|