本文整理匯總了PHP中RedBeanPHP\Facade::getExtractedToolbox方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facade::getExtractedToolbox方法的具體用法?PHP Facade::getExtractedToolbox怎麽用?PHP Facade::getExtractedToolbox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類RedBeanPHP\Facade
的用法示例。
在下文中一共展示了Facade::getExtractedToolbox方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testCanWeObtainToolbox
/**
* Test whether we can obtain a toolbox properly.
*
* @return void
*/
public function testCanWeObtainToolbox()
{
$toolbox = R::getToolBox();
asrt($toolbox instanceof TB, TRUE);
$extractedToolbox = R::getExtractedToolbox();
asrt(is_array($extractedToolbox), TRUE);
asrt(count($extractedToolbox), 4);
asrt($extractedToolbox[0] instanceof OODB, TRUE);
asrt($extractedToolbox[1] instanceof Adapter, TRUE);
asrt($extractedToolbox[2] instanceof QueryWriter, TRUE);
asrt($extractedToolbox[3] instanceof TB, TRUE);
$beanHelper = new SimpleFacadeBeanHelper();
$toolbox2 = $beanHelper->getToolbox();
asrt($toolbox2 instanceof TB, TRUE);
asrt($toolbox, $toolbox2);
$extractedToolbox = $beanHelper->getExtractedToolbox();
asrt(is_array($extractedToolbox), TRUE);
asrt(count($extractedToolbox), 4);
asrt($extractedToolbox[0] instanceof OODB, TRUE);
asrt($extractedToolbox[1] instanceof Adapter, TRUE);
asrt($extractedToolbox[2] instanceof QueryWriter, TRUE);
asrt($extractedToolbox[3] instanceof TB, TRUE);
}
示例2: getExtractedToolbox
public function getExtractedToolbox()
{
return Facade::getExtractedToolbox();
}