CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Team
    • Issues (Github)
    • YouTube Channel
    • Get Involved
    • Bakery
    • Featured Resources
    • Newsletter
    • Certification
    • My CakePHP
    • CakeFest
    • Facebook
    • Twitter
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 3.8 Red Velvet API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 3.8
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Cake
    • Auth
      • Storage
    • Cache
      • Engine
    • Collection
      • Iterator
    • Command
    • Console
      • Exception
    • Controller
      • Component
      • Exception
    • Core
      • Configure
        • Engine
      • Exception
      • Retry
    • Database
      • Driver
      • Exception
      • Expression
      • Schema
      • Statement
      • Type
    • Datasource
      • Exception
    • Error
      • Middleware
    • Event
      • Decorator
    • Filesystem
    • Form
    • Http
      • Client
        • Adapter
        • Auth
      • Cookie
      • Exception
      • Middleware
      • Session
    • I18n
      • Formatter
      • Middleware
      • Parser
    • Log
      • Engine
    • Mailer
      • Exception
      • Transport
    • Network
      • Exception
    • ORM
      • Association
      • Behavior
        • Translate
      • Exception
      • Locator
      • Rule
    • Routing
      • Exception
      • Filter
      • Middleware
      • Route
    • Shell
      • Helper
      • Task
    • TestSuite
      • Fixture
      • Stub
    • Utility
      • Exception
    • Validation
    • View
      • Exception
      • Form
      • Helper
      • Widget
  • None

Classes

  • TableLocator

Interfaces

  • LocatorInterface

Traits

  • LocatorAwareTrait

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
Namespace: Cake\ORM\Locator
Location: ORM/Locator/LocatorAwareTrait.php

Properties summary

  • $_tableLocator protected
    Cake\ORM\Locator\LocatorInterface
    Table locator instance

Method Summary

  • getTableLocator() public
    Gets the table locator.
  • setTableLocator() public
    Sets the table locator.
  • tableLocator() public deprecated

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

Method Detail

getTableLocator() public ¶

getTableLocator( )

Gets the table locator.

Returns
Cake\ORM\Locator\LocatorInterface

setTableLocator() public ¶

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

Sets the table locator.

Parameters
Cake\ORM\Locator\LocatorInterface $tableLocator
LocatorInterface instance.
Returns

$this

tableLocator() public deprecated ¶

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.
Returns
Cake\ORM\Locator\LocatorInterface

Properties detail

$_tableLocator ¶

protected Cake\ORM\Locator\LocatorInterface

Table locator instance

Follow @CakePHP
#IRC
OpenHub
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Logos & Trademarks
  • Community
  • Team
  • Issues (Github)
  • YouTube Channel
  • Get Involved
  • Bakery
  • Featured Resources
  • Newsletter
  • Certification
  • My CakePHP
  • CakeFest
  • Facebook
  • Twitter
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs