Permalink
Browse files

Adding headers to Auth classes.

  • Loading branch information...
1 parent c649738 commit 118d224c884595fd9b166223213d9cff1d2e8331 Matthew Mattson committed Mar 28, 2012
View
@@ -1,5 +1,11 @@
Changelog for LEAP ORM
+2012-03-27
+* Merged pull request from CubedEye (Issues #10 & #27)
+
+2012-03-22
+* Added new Base_DB_ORM_Model::is_saved() method.
+
2012-03-08
* Fixed a bug in Base_DB_ORM_Model::hash_code() per matesko's request (Issue #25).
* Fixed a bug in Base_DB_ORM_Model::load() per matesko's request (Issue #25).
View
@@ -36,6 +36,7 @@ LEAP provides a number of features, such as:
* Enforces strong data types on [database fields](http://orm.spadefootcode.com/tutorials/mapping-a-model/#fields).
* Allows [field aliases](http://orm.spadefootcode.com/tutorials/mapping-a-model/#aliases) to be declared.
* Makes working with certain database fields easy with [field adaptors](http://orm.spadefootcode.com/tutorials/mapping-a-model/#adaptors).
+* A set of Auth classes for authenticating user logins.
* A toolkit of useful functions.
* [Leap's API](http://orm.spadefootcode.com/api/annotated.html) that documents each class.
* Lots of [tutorials](http://orm.spadefootcode.com/tutorials/index/).
View
@@ -1,3 +1,27 @@
<?php defined("SYSPATH") or die('No direct script access.');
-class Auth_Leap extends Base_Auth_Leap {}
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class handles authentication.
+ *
+ * @package Leap
+ * @category Auth
+ * @version 2012-03-27
+ */
+class Auth_Leap extends Base_Auth_Leap {}
+?>
View
@@ -1,7 +1,29 @@
<?php defined("SYSPATH") or die('No direct script access.');
-class Base_Auth_Leap extends Auth
-{
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class handles authentication.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Base_Auth_Leap extends Auth {
protected $models = array(
'role' => 'Role',
@@ -1,7 +1,30 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Base_Model_Leap_Role extends DB_ORM_Model
-{
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "roles" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Base_Model_Leap_Role extends DB_ORM_Model {
+
public function __construct()
{
parent::__construct();
@@ -1,9 +1,31 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Base_Model_Leap_Session extends DB_ORM_Model
-{
- public function __construct()
- {
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "sessions" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Base_Model_Leap_Session extends DB_ORM_Model {
+
+ public function __construct() {
parent::__construct();
$this->fields = array(
'sesID' => new DB_ORM_Field_String($this, array(
@@ -1,7 +1,30 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Base_Model_Leap_User extends DB_ORM_Model
-{
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "users" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Base_Model_Leap_User extends DB_ORM_Model {
+
public function __construct()
{
parent::__construct();
@@ -1,7 +1,30 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Base_Model_Leap_User_Role extends DB_ORM_Model
-{
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "user_roles" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Base_Model_Leap_User_Role extends DB_ORM_Model {
+
public function __construct()
{
parent::__construct();
@@ -1,7 +1,30 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Base_Model_Leap_User_Token extends DB_ORM_Model
-{
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "user_tokens" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Base_Model_Leap_User_Token extends DB_ORM_Model {
+
public function __construct()
{
parent::__construct();
@@ -1,8 +1,31 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Base_Session_Leap extends Session
-{
- protected $_table = 'Session';//Session Model
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a session.
+ *
+ * @package Leap
+ * @category Session
+ * @version 2012-03-27
+ */
+class Base_Session_Leap extends Session {
+
+ protected $_table = 'Session'; // Session Model
// Database column names
protected $_columns = array(
@@ -1,3 +1,27 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Model_Leap_Role extends Base_Model_Leap_Role{}
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "roles" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Model_Leap_Role extends Base_Model_Leap_Role {}
+?>
@@ -1,3 +1,27 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Model_Leap_Session extends Base_Model_Leap_Session {}
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "sessions" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Model_Leap_Session extends Base_Model_Leap_Session {}
+?>
@@ -1,3 +1,27 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class Model_Leap_User extends Base_Model_Leap_User {}
+/**
+ * Copyright 2012 CubedEye
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class represents a record in the "users" table.
+ *
+ * @package Leap
+ * @category Model
+ * @version 2012-03-27
+ */
+class Model_Leap_User extends Base_Model_Leap_User {}
+?>
Oops, something went wrong.

0 comments on commit 118d224

Please sign in to comment.