Trait LocatorAwareTrait
Contains method for setting and accessing LocatorInterface instance
Direct Users
- Cake\Auth\BaseAuthenticate
- Cake\Console\Command
- Cake\View\Cell
- Cake\View\Form\EntityContext
- Cake\Console\Shell
- Cake\Controller\Controller
- Cake\Http\Session\DatabaseSession
- Cake\ORM\Association
- Cake\ORM\AssociationCollection
- Cake\ORM\Behavior\TranslateBehavior
- Cake\TestSuite\Fixture\TestFixture
- Cake\TestSuite\TestCase
Indirect Users
- Cake\Auth\BasicAuthenticate
- Cake\Auth\DigestAuthenticate
- Cake\Shell\CacheShell
- Cake\Shell\CommandListShell
- Cake\Shell\CompletionShell
- Cake\Shell\I18nShell
- Cake\Shell\OrmCacheShell
- Cake\Shell\PluginShell
- Cake\Shell\RoutesShell
- Cake\Shell\SchemaCacheShell
- Cake\Shell\ServerShell
- Cake\Shell\Task\AssetsTask
- Cake\Auth\FormAuthenticate
- Cake\Shell\Task\CommandTask
- Cake\Shell\Task\ExtractTask
- Cake\Shell\Task\LoadTask
- Cake\Shell\Task\UnloadTask
- Cake\TestSuite\ConsoleIntegrationTestCase
- Cake\TestSuite\IntegrationTestCase
- Cake\Command\HelpCommand
- Cake\Command\VersionCommand
- Cake\Controller\ErrorController
- Cake\ORM\Association\BelongsTo
- Cake\ORM\Association\BelongsToMany
- Cake\ORM\Association\HasMany
- Cake\ORM\Association\HasOne
Properties summary
-
$_tableLocator
protectedTable locator instance
Method Summary
-
getTableLocator() public
Gets the table locator. -
setTableLocator() public
Sets the table locator. -
tableLocator() public
Sets the table locator. If no parameters are passed, it will return the currently used locator.
Method Detail
setTableLocator() public ¶
setTableLocator( Cake\ORM\Locator\LocatorInterface
$tableLocator )
Sets the table locator.
Parameters
-
Cake\ORM\Locator\LocatorInterface
$tableLocator - LocatorInterface instance.
Returns
$this
tableLocator() public ¶
tableLocator( Cake\ORM\Locator\LocatorInterface
$tableLocator null )
Sets the table locator. If no parameters are passed, it will return the currently used locator.
Deprecated
3.5.0 Use getTableLocator()/setTableLocator() instead.
Parameters
-
Cake\ORM\Locator\LocatorInterface
$tableLocator optional null - LocatorInterface instance.