SDO_DAS_ChangeSummary::beginLogging
(^)
SDO_DAS_ChangeSummary::beginLogging — Begin change logging
Description
void SDO_DAS_ChangeSummary::beginLogging
( void
)
Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
Begin logging changes made to the SDO_DataObject.
Parameters
None.
Return Values
None.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Обработка XML
- Service Data Objects
- Функция SDO_DAS_ChangeSummary::beginLogging() - Begin change logging
- Функция SDO_DAS_ChangeSummary::endLogging() - End change logging
- Функция SDO_DAS_ChangeSummary::getChangeType() - Get the type of change made to an SDO_DataObject
- Функция SDO_DAS_ChangeSummary::getChangedDataObjects() - Get the changed data objects from a change summary
- Функция SDO_DAS_ChangeSummary::getOldContainer() - Get the old container for a deleted SDO_DataObject
- Функция SDO_DAS_ChangeSummary::getOldValues() - Get the old values for a given changed SDO_DataObject
- Функция SDO_DAS_ChangeSummary::isLogging() - Test to see whether change logging is switched on
- Функция SDO_DAS_DataFactory::addPropertyToType() - Adds a property to a type
- Функция SDO_DAS_DataFactory::addType() - Add a new type to a model
- Функция SDO_DAS_DataFactory::getDataFactory() - Get a data factory instance
- Функция SDO_DAS_DataObject::getChangeSummary() - Get a data object's change summary
- Функция SDO_DAS_Setting::getListIndex() - Get the list index for a changed many-valued property
- Функция SDO_DAS_Setting::getPropertyIndex() - Get the property index for a changed property
- Функция SDO_DAS_Setting::getPropertyName() - Get the property name for a changed property
- Функция SDO_DAS_Setting::getValue() - Get the old value for the changed property
- Функция SDO_DAS_Setting::isSet() - Test whether a property was set prior to being modified
- Функция SDO_DataFactory::create() - Create an SDO_DataObject
- Функция SDO_DataObject::clear() - Clear an SDO_DataObject's properties
- Функция SDO_DataObject::createDataObject() - Create a child SDO_DataObject
- Функция SDO_DataObject::getContainer() - Get a data object's container
- Функция SDO_DataObject::getSequence() - Get the sequence for a data object
- Функция SDO_DataObject::getTypeName() - Return the name of the type for a data object.
- Функция SDO_DataObject::getTypeNamespaceURI() - Return the namespace URI of the type for a data object.
- Функция SDO_Exception::getCause() - Get the cause of the exception.
- Функция SDO_List::insert() - Insert into a list
- Функция SDO_Model_Property::getContainingType() - Get the SDO_Model_Type which contains this property
- Функция SDO_Model_Property::getDefault() - Get the default value for the property
- Функция SDO_Model_Property::getName() - Get the name of the SDO_Model_Property
- Функция SDO_Model_Property::getType() - Get the SDO_Model_Type of the property
- Функция SDO_Model_Property::isContainment() - Test to see if the property defines a containment relationship
- Функция SDO_Model_Property::isMany() - Test to see if the property is many-valued
- Функция SDO_Model_ReflectionDataObject::__construct() - Construct an SDO_Model_ReflectionDataObject
- Функция SDO_Model_ReflectionDataObject::export() - Get a string describing the SDO_DataObject.
- Функция SDO_Model_ReflectionDataObject::getContainmentProperty() - Get the property which defines the containment relationship to the data object
- Функция SDO_Model_ReflectionDataObject::getInstanceProperties() - Get the instance properties of the SDO_DataObject
- Функция SDO_Model_ReflectionDataObject::getType() - Get the SDO_Model_Type for the SDO_DataObject
- Функция SDO_Model_Type::getBaseType() - Get the base type for this type
- Функция SDO_Model_Type::getName() - Get the name of the type
- Функция SDO_Model_Type::getNamespaceURI() - Get the namespace URI of the type
- Функция SDO_Model_Type::getProperties() - Get the SDO_Model_Property objects defined for the type
- Функция SDO_Model_Type::getProperty() - Get an SDO_Model_Property of the type
- Функция SDO_Model_Type::isAbstractType() - Test to see if this SDO_Model_Type is an abstract data type
- Функция SDO_Model_Type::isDataType() - Test to see if this SDO_Model_Type is a primitive data type
- Функция SDO_Model_Type::isInstance() - Test for an SDO_DataObject being an instance of this SDO_Model_Type
- Функция SDO_Model_Type::isOpenType() - Test to see if this type is an open type
- Функция SDO_Model_Type::isSequencedType() - Test to see if this is a sequenced type
- Функция SDO_Sequence::getProperty() - Return the property for the specified sequence index.
- Функция SDO_Sequence::insert() - Insert into a sequence
- Функция SDO_Sequence::move() - Move an item to another sequence position
Коментарии
<?php
/**
* Created by PhpStorm.
* User: Kibo
* Date: 09-06-18
* Time: 18:48
*/
class Database
{
protected $url;
protected $user;
protected $passw;
protected $db;
protected $connection = null;
public function __construct($url,$user,$passw,$db){
$this->url = $url;
$this->user = $user;
$this->passw = $passw;
$this->db = $db;
}
public function __destruct() {
if ($this->connection != null) {
$this->closeConnection();
}
}
protected function makeConnection(){
//Make a connection
$this->connection = new mysqli($this->url,$this->user,$this->passw,$this->db);
if ($this->connection->connect_error) {
echo "FAIL:" . $this->connection->connect_error;
}
}
protected function closeConnection() {
//Close the DB connection
if ($this->connection != null) {
$this->connection->close();
$this->connection = null;
}
}
protected function cleanParameters($p) {
//prevent SQL injection
$result = $this->connection->real_escape_string($p);
return $result;
}
public function executeQuery($q){
//Is there a DB connection?
$this->makeConnection();
//check for SQL injection
//execute query
$results = $this->connection->query($q);
return $results;
}
}