github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

evilbloodydemon / cakephp-scope

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Scope definition plugin for CakePHP — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

readme added 
evilbloodydemon (author)
Sat Nov 14 08:55:58 -0800 2009
commit  d324bf09c5092cc2535f798580a082ca50906980
tree    922b98d11dc91264096ba63dc9d75a56259219e1
parent  879d74354edcfcd60bb4cd5ef3e87a9547ee0aee
cakephp-scope /
name age
history
message
file README.txt Loading commit data...
directory models/ Sat Nov 14 08:55:58 -0800 2009 readme added [evilbloodydemon]
directory tests/ Sat Nov 14 08:28:13 -0800 2009 show warning if behavior attached with invalid ... [evilbloodydemon]
README.txt
Scope Behavior for CakePHP 1.2

Copyright 2009, Igor Fomin (http://evilbloodydemon.wordpress.com/)
The MIT License (http://www.opensource.org/licenses/mit-license.php)

This behavior allows you define a 'scope' for model that applies then for find and save.
It can be useful, say, for situations when multiple sites use one database and
distinguish their records by special field.

Example:

  var $actsAs = array(
    'Scope.Scope' => array(
      'field' => 'site_id',
      'value' => 1,
    )
  );
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server