This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User object | |
{ | |
private user_id = 1; | |
private user_email = 'thomas@juvenorge.com'; | |
private user_access_key 'ergdvzwezsfgdzesgeszwsfd'; | |
private user_access_level = '1'; // Administrator | |
private user_last_active '2012/07/16 16:00'; | |
private member = Member object { | |
private member_id = 1; // Could be 2, 5, 72, etc | |
private date_of_registration = ''; // some date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class User | |
{ | |
private $user_id; | |
private $user_email; | |
private $password; | |
private $user_access_key; | |
private $user_access_level; | |
private $user_last_active; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* User class | |
*/ | |
class User | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prefix_access_levels | |
-------------------------- | |
access_level_id INT(2) | |
level TINYINT(1) | |
name VARCHAR(255) | |
prefix_groups | |
-------------------------- | |
group_id INT(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Executes a query against the database. | |
* | |
* @param string $query The query to be executed | |
* @return mixed The result array on success, null if no data is matching and false if query fails. | |
*/ | |
public function query ($query) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Database | |
* | |
* Database library using MySQLi. | |
* | |
* @package Core | |
* @author Lasse Brenden <lasse@pelota.no> | |
* @copyright (c)2012, Pelota |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$array = array | |
( | |
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, | |
"String 1", "Hello", 'World' | |
); | |
foreach ( $array as $value ) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Library_User | |
* User class providing authentication | |
* | |
* @package Core | |
* @author Thomas Larsson <thomas@juvenorge.com> | |
* @copyright (c)2012, Thomas Larsson | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple Google maps address lookup | |
* | |
* Enables you to get latitude and longitude for an address | |
* | |
* @author Thomas Maurstad Larsson, Logoz As <thomas@logoz.no> | |
* @link http://logoz.no | |
* @copyright Copyright (c) 2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Make sure direct access is not allowed | |
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Allows you to calculate the remainder of time from now to a given DateTime | |
* | |
* @author Thomas Maurstad Larsson, Logoz As <thomas@logoz.no> | |
* @link http://nybilguiden.no |
OlderNewer