本文整理汇总了PHP中manager::getNewBoModel方法的典型用法代码示例。如果您正苦于以下问题:PHP manager::getNewBoModel方法的具体用法?PHP manager::getNewBoModel怎么用?PHP manager::getNewBoModel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类manager
的用法示例。
在下文中一共展示了manager::getNewBoModel方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($model, $session = "0", $clock = 0)
{
$this->clock = $clock;
//0;
wfDebugLog('p2p', $this->clock . ' - function logootEngine::__construct ');
if (isset($model)) {
$this->model = $model;
} else {
$this->model = manager::getNewBoModel();
}
$this->sessionid = $session;
}
示例2: loadModel
/**
*
* @param <String> $rev_id Revision id
* @return boModel
*/
static function loadModel($rev_id)
{
try {
if ($rev_id != 0) {
$dao = new dao();
return $dao->loadModel($rev_id);
} else {
return manager::getNewBoModel();
}
} catch (Exception $e) {
throw new MWException(__METHOD__ . ' db access problems,
if this page existed before the DSMW installation,
maybe it has not been processed by DSMW');
}
}
示例3: test3
function test3()
{
// Test Undo de la thèse
$model = manager::getNewBoModel();
$logoot = manager::getNewEngine($model, 3);
$this->patch[1] = $logoot->generate($this->texte1, $this->texte2);
$this->patch[2] = $logoot->generate($this->texte2, $this->texte3);
$this->patch[3] = $logoot->generate($this->texte3, $this->texte4);
$this->assertEquals($this->texte4, $model->getText());
$txt1 = $model->getText();
$invPatch = $logoot->undoPatch($this->patch[2]);
$logoot->integrate($invPatch);
$invinvPatch = $logoot->undoPatch($invPatch);
$logoot->integrate($invinvPatch);
$txt2 = $model->getText();
$this->assertEquals(4, count($model->getPositionList()));
$this->assertEquals(4, count($model->getLineList()));
$this->assertEquals($this->texte4, $model->getText());
$this->assertEquals($txt1, $txt2);
}