Some small changes + data interface
This commit is contained in:
parent
8cbbd973f2
commit
939deb671c
7 changed files with 21 additions and 8 deletions
|
|
@ -35,7 +35,7 @@ class Users extends Zend_Db_Table_Abstract implements Fiktiv_Data_Storage
|
|||
// Keep all but password and salt in session.
|
||||
$storage = $auth->getStorage();
|
||||
$storage->write($authAdapter->getResultRowObject(null, array('password', 'salt')));
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ example = "This is an example of %s and %s"
|
|||
email = email
|
||||
password = password
|
||||
login = login
|
||||
LOGIN_TXT = "Fill out your information below to login.<br /><p class="yellow">There is no sign up at this time.</p>"
|
||||
LOGIN_TXT = "Fill out your information below to login.<br /><p class="red">There is no sign up at this time.</p>"
|
||||
|
||||
START_TXT = "Welcome to fiktivkod.org. ...."
|
||||
ABOUT_TXT = "Fiktiv (fiktivkod.org) is ... that started ..."
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ example = "Det här är ett exempel på %s och %s"
|
|||
email = e-post
|
||||
password = lösenord
|
||||
login = logga in
|
||||
LOGIN_TXT = "Ange dina uppgifter nedan för att logga in.<br /><p class="yellow">Det går inte att registrera sig just nu.</p>"
|
||||
LOGIN_TXT = "Ange dina uppgifter nedan för att logga in.<br /><p class="red">Det går inte att registrera sig just nu.</p>"
|
||||
|
||||
START_TXT = "Välkommen till fiktivkod.org. ...."
|
||||
ABOUT_TXT = "Fiktiv (fiktivkod.org) är ... som startade ..."
|
||||
|
|
|
|||
|
|
@ -7,16 +7,12 @@ class User
|
|||
{
|
||||
|
||||
protected $_email;
|
||||
|
||||
protected $_firstName;
|
||||
|
||||
protected $_lastName;
|
||||
|
||||
protected $_regDate;
|
||||
|
||||
protected $_isDeleted = false;
|
||||
|
||||
|
||||
|
||||
public function __construct(array $data = array()) {
|
||||
|
||||
|
||||
|
|
@ -86,6 +82,10 @@ class User
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* String representation of the object
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return '{' . $this->_firstName . ' ' . $this->_lastName . '}';
|
||||
|
|
|
|||
6
library/Fiktiv/Data/Interface/Read.php
Normal file
6
library/Fiktiv/Data/Interface/Read.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
interface Fiktiv_Data_Interface_Read {
|
||||
|
||||
|
||||
}
|
||||
6
library/Fiktiv/Data/Interface/Write.php
Normal file
6
library/Fiktiv/Data/Interface/Write.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
interface Fiktiv_Data_Interface_Write {
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -170,6 +170,7 @@ p.bail {
|
|||
.red { color: red }
|
||||
.green { color: green }
|
||||
.blue { color: blue }
|
||||
.yellow { color: yellow }
|
||||
|
||||
/* Alignment */
|
||||
|
||||
|
|
|
|||
Reference in a new issue