LocatorAwareTrait (class)

Trait LocatorAwareTrait

Contains method for setting and accessing LocatorInterface instance

Direct Users

Indirect Users

Properties summary

Method Summary

  • Sets the table locator. If no parameters are passed, it will return the currently used locator.

Method Detail

tableLocator()source public

tableLocator( Cake\ORM\Locator\LocatorInterface $tableLocator null )

Sets the table locator. If no parameters are passed, it will return the currently used locator.

Parameters

Cake\ORM\Locator\LocatorInterface $tableLocator optional null
LocatorInterface instance.

Returns

Cake\ORM\Locator\LocatorInterface

Properties detail

$_tableLocatorsource

protected Cake\ORM\Locator\LocatorInterface

Table locator instance

© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/3.2/class-Cake.ORM.Locator.LocatorAwareTrait.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部