当前位置: 首页>>代码示例>>PHP>>正文


PHP TableRegistry::clear方法代码示例

本文整理汇总了PHP中Cake\ORM\TableRegistry::clear方法的典型用法代码示例。如果您正苦于以下问题:PHP TableRegistry::clear方法的具体用法?PHP TableRegistry::clear怎么用?PHP TableRegistry::clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cake\ORM\TableRegistry的用法示例。


在下文中一共展示了TableRegistry::clear方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: all

 /**
  * Bake All the controllers at once. Will only bake controllers for models that exist.
  *
  * @return void
  */
 public function all()
 {
     foreach ($this->listAll() as $table) {
         TableRegistry::clear();
         $this->main($table);
     }
 }
开发者ID:maitrepylos,项目名称:nazeweb,代码行数:12,代码来源:ControllerTask.php

示例2: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->NotificationQueue);
     unset($this->NotificationContents);
     TableRegistry::clear();
     parent::tearDown();
 }
开发者ID:codekanzlei,项目名称:cake-notifications,代码行数:12,代码来源:NotificationQueuesTableTest.php

示例3: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     $this->Articles = TableRegistry::get('ArticlesTable', ['className' => 'ModelHistoryTestApp\\Model\\Table\\ArticlesTable']);
     $this->ModelHistory = TableRegistry::get('ModelHistory', ['className' => 'ModelHistory\\Model\\Table\\ModelHistoryTable']);
     parent::setUp();
     TableRegistry::clear();
 }
开发者ID:codekanzlei,项目名称:cake-model-history,代码行数:12,代码来源:HistorizableBehaviorTest.php

示例4: tearDown

 /**
  * tear down
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->Noticias->removeBehavior("CakePtbr.AjusteData");
     unset($this->Noticias, $this->Noticias);
     TableRegistry::clear();
 }
开发者ID:matheusviegas,项目名称:cake_ptbr,代码行数:11,代码来源:AjusteDataBehaviorTest.php

示例5: setUp

 /**
  * reset environment.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('App.namespace', 'TestApp');
     Plugin::load(array('TestPlugin', 'TestPluginTwo'));
     $this->Case = $this->getMockForAbstractClass('Cake\\TestSuite\\ControllerTestCase');
     $this->Case->loadRoutes = false;
     DispatcherFactory::add('Routing');
     DispatcherFactory::add('ControllerFactory');
     Router::scope('/', function ($routes) {
         $routes->fallbacks();
     });
     Router::prefix('admin', function ($routes) {
         $routes->plugin('TestPlugin', function ($routes) {
             $routes->fallbacks();
         });
         $routes->fallbacks();
     });
     Router::plugin('TestPlugin', function ($routes) {
         $routes->fallbacks();
     });
     Router::plugin('TestPluginTwo', function ($routes) {
         $routes->fallbacks();
     });
     TableRegistry::clear();
 }
开发者ID:maitrepylos,项目名称:nazeweb,代码行数:31,代码来源:ControllerTestCaseTest.php

示例6: tearDown

 public function tearDown()
 {
     TableRegistry::clear();
     Type::clear();
     Type::map($this->_map);
     parent::tearDown();
 }
开发者ID:Slayug,项目名称:castor,代码行数:7,代码来源:TableTest.php

示例7: tearDown

 /**
  * endTest
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Articles);
     unset($this->Posts);
     TableRegistry::clear();
 }
开发者ID:ayman-alkom,项目名称:cakephp-ratings,代码行数:12,代码来源:RatableBehaviorTest.php

示例8: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Task);
     TableRegistry::clear();
     parent::tearDown();
     Plugin::unload('ControllerTest');
 }
开发者ID:ringiait,项目名称:portal,代码行数:12,代码来源:ControllerTaskTest.php

示例9: tearDown

 /**
  * endTest
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->FileStorage);
     unset($this->FileStorageBehavior);
     TableRegistry::clear();
 }
开发者ID:tiagocapelli,项目名称:cakephp-file-storage,代码行数:12,代码来源:FileStorageTableTest.php

示例10: tearDown

 /**
  * End a test
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Article);
     TableRegistry::clear();
     DebugTimer::clear();
 }
开发者ID:neilan35,项目名称:betterwindow1,代码行数:12,代码来源:TimedBehaviorTest.php

示例11: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Posts);
     unset($this->Behavior);
     ResolvableAuthorizationInstance::reset();
     TableRegistry::clear();
     parent::tearDown();
 }
开发者ID:pulse14,项目名称:cakephp-resolveauth,代码行数:13,代码来源:FieldAuthorizationBehaviorTest.php

示例12: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Model);
     TableRegistry::clear();
     $folder = new Folder(WWW_ROOT . 'upload');
     $folder->delete(WWW_ROOT . 'upload');
 }
开发者ID:arourke,项目名称:Cake3-Upload,代码行数:13,代码来源:UploadBehaviorTest.php

示例13: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->SeoBehavior);
     unset($this->Articles);
     unset($this->router);
     parent::tearDown();
     TableRegistry::clear();
 }
开发者ID:orgasmicnightmare,项目名称:cakephp-seo,代码行数:13,代码来源:SeoBehaviorTest.php

示例14: setUp

 /**
  * setup
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     TableRegistry::clear();
     $this->Users = TableRegistry::get('Users', ['className' => 'TestApp\\Model\\Table\\UsersTable']);
     $this->UserBehavior = $this->getMockBuilder('\\Burzum\\UserTools\\Model\\Behavior\\UserBehavior')->setConstructorArgs([$this->Users])->setMethods(['getMailer'])->getMock();
     $this->MockMailer = $this->getMockBuilder('Burzum\\UserTools\\Mailer\\UsersMailer')->setMethods(['send'])->getMock();
 }
开发者ID:burzum,项目名称:cakephp-user-tools,代码行数:13,代码来源:UserBehaviorTest.php

示例15: setUp

 /**
  * setup
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Collection = $this->getMock('Cake\\Controller\\ComponentRegistry');
     $this->auth = new OAuthAuthenticate($this->Collection, ['userModel' => 'Users']);
     TableRegistry::clear();
     $this->response = $this->getMock('Cake\\Network\\Response');
 }
开发者ID:surjit,项目名称:oauth-server,代码行数:13,代码来源:OAuthAuthenticateTest.php


注:本文中的Cake\ORM\TableRegistry::clear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。