本文整理匯總了PHP中Index::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Index::__construct方法的具體用法?PHP Index::__construct怎麽用?PHP Index::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Index
的用法示例。
在下文中一共展示了Index::__construct方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* ForeignKey
*
* @param string $name
* @param Table $table
* @param IndexColumn[] $columns
* @param Table $refTable
* @param IndexColumn[] $refColumns
* @param string $match
* @param string[] $actions
*/
public function __construct($name, Table $table, $columns, Table $refTable, $refColumns, $match, $actions)
{
parent::__construct($name, $columns, 'FOREIGN');
$this->table = $table;
$this->refTable = $refTable;
$this->refColumns = $refColumns;
$this->match = $match;
$this->actions = $actions;
}
示例2: __construct
/**
* Sets the index file, index offset and the index length
*
* @param string $path Index file
* @param string $indexFieldOffset Index field offset
* @param string $indexFieldLength Index field length
*
* @throws FileExistsIOException
* @throws IOIndexException
*/
public function __construct($path, $indexFieldOffset, $indexFieldLength)
{
parent::__construct($path);
$this->indexFieldOffset = $indexFieldOffset;
$this->indexFieldLength = $indexFieldLength;
$dummyLine = fgets($this->getFile()->getFilePointer());
if (!$dummyLine) {
throw new IOIndexException("Could not read line length");
}
$this->lineLength = strlen($dummyLine);
}
示例3: __construct
/**
* Creates a new primary key.
*
* @param string $table the name of the table
* @param array $fields an array with fields used for the key
*/
public function __construct($table, $fields = array())
{
parent::__construct('PRIMARY', $table, true, $fields);
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->bone_path = ROOT . '/vendor/enknot/bonetool/include';
}
示例5: __construct
public function __construct()
{
parent::__construct();
// 回調函數
$this->api_callback = empty($_REQUEST['callback']) ? $this->api_callback : $_REQUEST['callback'];
$this->api_callback = str_ireplace(array('cookie', 'alert'), '', $this->api_callback);
preg_match('/[a-z0-9\\.]+/i', $this->api_callback, $matches);
$this->api_callback = empty($matches[0]) ? null : $matches[0];
// data中的key
$this->api_data_key = isset($_REQUEST['data_key']) ? true : false;
}
示例6:
function __construct()
{
parent::__construct();
}
示例7: __construct
/**
* Sets the index file, container name and the index attribute
*
* @param string $path Index file
* @param string $element Container name
* @param string $attribute Index attribute name
*
* @throws FileExistsIOException
* @throws IOIndexException
*/
public function __construct($path, $element, $attribute)
{
parent::__construct($path);
$this->element = $element;
$this->attribute = $attribute;
}