|
static | thisOne () |
|
static | findAll () |
|
static | URIExists ($uri) |
|
static | findBySQL ($sql, $params=[]) |
|
static | find ($id) |
|
static | tableScheme ($db_table) |
|
static | expireTableScheme () |
|
static | exists ($id) |
|
static | countBySql ($sql='1', $params=[]) |
|
static | create ($data) |
|
static | build ($data, $is_new=true) |
|
static | buildExisting ($data) |
|
static | import ($data) |
|
static | findBySQL ($sql, $params=[]) |
|
static | findOneBySQL ($where, $params=[]) |
|
static | findThru ($foreign_key_value, $options) |
|
static | findEachBySQL ($callable, $sql, $params=[]) |
|
static | findMany ($pks=[], $order='', $order_params=[]) |
|
static | findEachMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | findAndMapBySQL ($callable, $where, $params=[]) |
|
static | findAndMapMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | deleteBySQL ($where, $params=[]) |
|
static | toObject ($id_or_object) |
|
static | __callStatic (string $name, array $arguments) |
|
|
static | $schemes = null |
|
| createKeys () |
|
| _getId ($field) |
|
| _setId ($field, $value) |
|
| _getAdditionalValueFromRelation ($field) |
|
| _setAdditionalValueFromRelation ($field, $value) |
|
| _getAdditionalValue ($field) |
|
| _setAdditionalValue ($field, $value) |
|
| parseRelationOptions ($type, $name, $options) |
|
| storeRelations ($only_these=null) |
|
| deleteRelations () |
|
| initializeContent () |
|
| applyCallbacks ($type) |
|
| cbNotificationMapper ($cb_type) |
|
| cbAfterInitialize ($cb_type) |
|
| setSerializedValue ($field, $value) |
|
| setI18nValue ($field, $value) |
|
| $content = [] |
|
| $content_db = [] |
|
| $is_new = true |
|
| $is_deleted = false |
|
| $relations = [] |
|
| $additional_data = [] |
|
static | $config = [] |
|
static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
|
static | $performs_batch_operation = false |
|
◆ askKnownHosts()
Ask this host for all hosts that it knows. This is a request to the other host.
◆ configure()
static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
configures this class
- Parameters
-
◆ fetchItemData()
Fetches all information of an item from that host. This is a request.
- Parameters
-
string | $foreign_material_id | : foreign id of that oer-material |
- Returns
- array|null : data of that material or null on error.
◆ fetchPublicKey()
Fetches the public key from an OERHost. Makes a request to the other host.
◆ fetchRemoteSearch()
fetchRemoteSearch |
( |
|
$text = null , |
|
|
|
$tag = null |
|
) |
| |
Executes a search request on the host.
- Parameters
-
string | null | $text | : the search string |
string | null | $tag | : a tag to search for |
◆ find()
◆ findAll()
Fetches and returns all known hosts from database.
- Returns
- array of all OERHost objects
◆ findBySQL()
static findBySQL |
( |
|
$sql, |
|
|
|
$params = [] |
|
) |
| |
|
static |
◆ getAuthorsForMaterial()
◆ getDownloadURLForMaterial()
◆ getFrontImageURL()
◆ isMe()
Checks if this object is the OERHost of this Stud.IP.
- Returns
- bool
◆ isReviewable()
◆ pushDataToEndpoint()
pushDataToEndpoint |
( |
|
$endpoint, |
|
|
|
$data |
|
) |
| |
Pushes some data to the foreign OERHost.
- Parameters
-
string | $endpoint | : part behind the host-url like "push_data" |
array | $data | : the data to be pushed as an associative array |
- Returns
- bool|CurlHandle|resource
◆ thisOne()
Fetches the OERHost of this Stud.IP. If none existed before it will be created and the object returnd.
- Returns
- OERHost
◆ URIExists()
◆ OER_HEADER_PUBLIC_KEY_HASH
const OER_HEADER_PUBLIC_KEY_HASH = "Publickey-Hash" |
◆ OER_HEADER_SIGNATURE
const OER_HEADER_SIGNATURE = "RSA-Signature-Base64" |
The documentation for this class was generated from the following file: