This repository has been archived by the owner on May 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding example-file for API-Module domainReadEntry (bbDomain::readEnt…
…ry())
- Loading branch information
1 parent
0307af3
commit a093886
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* Example for usage of \api\module\domainReadEntry | ||
* | ||
* @author Andreas Doebeling <ad@1601.com> | ||
* @copyright 1601.production siegler&thuemmler ohg | ||
* @link https://github.com/ADoebeling/RP2-Framework | ||
* @link https://xing-ad.1601.com | ||
* @link https://www.1601.com | ||
*/ | ||
|
||
/* | ||
* External Access | ||
*/ | ||
require_once '../bootstrap.php'; // Include the framework | ||
$rpf = new \rpf\system\rpf(); // Instantiate the framework | ||
|
||
$rpf | ||
->getApi() // Optional: Load the api | ||
->getUser() // Optional: Load the user-module | ||
->httpAuth(); // Optional: Send http-auth if you need to authenticate first | ||
|
||
$result = $rpf // Store result (of get() ) to the array $result | ||
|
||
->getApi() // Load the API | ||
->getDomainReadEntry() // Load the API-module domainReadEntry (bbDomain::readEntry) | ||
|
||
->setDomainId($dn) // Optional: Get a single domain by id | ||
->setOeid($oeid) // Optional: Get domains by hidden rp2-order-id | ||
|
||
->addSubdomain() // Optional: Add subdomains to result | ||
->addMajor() // Optional: Add ??? | ||
->addFrontpage() // Optional: Add frontpage-settings | ||
->addHandles() // Optional: Add domain-handle-information | ||
->addLimits() // Optional: Add Limits (??? config or usage) | ||
->addNameserver() // Optional: Add dns-records | ||
->addPhpini() // Optional: Add php-ini-config | ||
->addResellerFields() // Optional: Add order-name, ??? | ||
->addSpf() // Optional: Add dns-spf-settings (???) | ||
->addWebalizerSettings() // Optional: Add webalizier-settings | ||
->addStaid() // Optional: Add ??? | ||
|
||
->get(); // Return result as array, primary-key set to domain | ||
|
||
print_r($result); // Print-out the api-response |