Created
April 13, 2011 06:05
-
-
Save bshaffer/917045 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* sf_guard_user_old module configuration. | |
* | |
* @package ##PROJECT_NAME## | |
* @subpackage sf_guard_user_old | |
* @author ##AUTHOR_NAME## | |
* @version SVN: $Id: configuration.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $ | |
*/ | |
abstract class BaseSf_guard_user_oldGeneratorConfiguration extends sfModelGeneratorConfiguration | |
{ | |
public function getActionsDefault() | |
{ | |
return array(); | |
} | |
public function getFormActions() | |
{ | |
return array( '_delete' => NULL, '_list' => NULL, '_save' => NULL, '_save_and_add' => NULL,); | |
} | |
public function getNewActions() | |
{ | |
return array(); | |
} | |
public function getEditActions() | |
{ | |
return array(); | |
} | |
public function getListObjectActions() | |
{ | |
return array( '_edit' => NULL, '_delete' => NULL,); | |
} | |
public function getListActions() | |
{ | |
return array( '_new' => NULL,); | |
} | |
public function getListBatchActions() | |
{ | |
return array( '_delete' => NULL,); | |
} | |
public function getListParams() | |
{ | |
return '%%id%% - %%first_name%% - %%last_name%% - %%email_address%% - %%username%% - %%algorithm%% - %%salt%% - %%password%% - %%is_active%% - %%is_super_admin%% - %%last_login%% - %%credit_card_number%% - %%credit_card_type%% - %%credit_card_expiry%% - %%created_at%% - %%updated_at%%'; | |
} | |
public function getListLayout() | |
{ | |
return 'tabular'; | |
} | |
public function getListTitle() | |
{ | |
return 'Sf guard user old List'; | |
} | |
public function getEditTitle() | |
{ | |
return 'Edit Sf guard user old'; | |
} | |
public function getNewTitle() | |
{ | |
return 'New Sf guard user old'; | |
} | |
public function getFilterDisplay() | |
{ | |
return array(); | |
} | |
public function getFormDisplay() | |
{ | |
return array(); | |
} | |
public function getEditDisplay() | |
{ | |
return array(); | |
} | |
public function getNewDisplay() | |
{ | |
return array(); | |
} | |
public function getListDisplay() | |
{ | |
return array( 0 => 'id', 1 => 'first_name', 2 => 'last_name', 3 => 'email_address', 4 => 'username', 5 => 'algorithm', 6 => 'salt', 7 => 'password', 8 => 'is_active', 9 => 'is_super_admin', 10 => 'last_login', 11 => 'credit_card_number', 12 => 'credit_card_type', 13 => 'credit_card_expiry', 14 => 'created_at', 15 => 'updated_at',); | |
} | |
public function getFieldsDefault() | |
{ | |
return array( | |
'id' => array( 'is_link' => true, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'first_name' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'last_name' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'email_address' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'username' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'algorithm' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'salt' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'password' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'is_active' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Boolean',), | |
'is_super_admin' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Boolean',), | |
'last_login' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Date',), | |
'credit_card_number' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'credit_card_type' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'credit_card_expiry' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'created_at' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Date',), | |
'updated_at' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Date',), | |
'groups_list' => array( 'is_link' => false, 'is_real' => false, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
'permissions_list' => array( 'is_link' => false, 'is_real' => false, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',), | |
); | |
} | |
public function getFieldsList() | |
{ | |
return array( | |
'id' => array(), | |
'first_name' => array(), | |
'last_name' => array(), | |
'email_address' => array(), | |
'username' => array(), | |
'algorithm' => array(), | |
'salt' => array(), | |
'password' => array(), | |
'is_active' => array(), | |
'is_super_admin' => array(), | |
'last_login' => array(), | |
'credit_card_number' => array(), | |
'credit_card_type' => array(), | |
'credit_card_expiry' => array(), | |
'created_at' => array(), | |
'updated_at' => array(), | |
'groups_list' => array(), | |
'permissions_list' => array(), | |
); | |
} | |
public function getFieldsFilter() | |
{ | |
return array( | |
'id' => array(), | |
'first_name' => array(), | |
'last_name' => array(), | |
'email_address' => array(), | |
'username' => array(), | |
'algorithm' => array(), | |
'salt' => array(), | |
'password' => array(), | |
'is_active' => array(), | |
'is_super_admin' => array(), | |
'last_login' => array(), | |
'credit_card_number' => array(), | |
'credit_card_type' => array(), | |
'credit_card_expiry' => array(), | |
'created_at' => array(), | |
'updated_at' => array(), | |
'groups_list' => array(), | |
'permissions_list' => array(), | |
); | |
} | |
public function getFieldsForm() | |
{ | |
return array( | |
'id' => array(), | |
'first_name' => array(), | |
'last_name' => array(), | |
'email_address' => array(), | |
'username' => array(), | |
'algorithm' => array(), | |
'salt' => array(), | |
'password' => array(), | |
'is_active' => array(), | |
'is_super_admin' => array(), | |
'last_login' => array(), | |
'credit_card_number' => array(), | |
'credit_card_type' => array(), | |
'credit_card_expiry' => array(), | |
'created_at' => array(), | |
'updated_at' => array(), | |
'groups_list' => array(), | |
'permissions_list' => array(), | |
); | |
} | |
public function getFieldsEdit() | |
{ | |
return array( | |
'id' => array(), | |
'first_name' => array(), | |
'last_name' => array(), | |
'email_address' => array(), | |
'username' => array(), | |
'algorithm' => array(), | |
'salt' => array(), | |
'password' => array(), | |
'is_active' => array(), | |
'is_super_admin' => array(), | |
'last_login' => array(), | |
'credit_card_number' => array(), | |
'credit_card_type' => array(), | |
'credit_card_expiry' => array(), | |
'created_at' => array(), | |
'updated_at' => array(), | |
'groups_list' => array(), | |
'permissions_list' => array(), | |
); | |
} | |
public function getFieldsNew() | |
{ | |
return array( | |
'id' => array(), | |
'first_name' => array(), | |
'last_name' => array(), | |
'email_address' => array(), | |
'username' => array(), | |
'algorithm' => array(), | |
'salt' => array(), | |
'password' => array(), | |
'is_active' => array(), | |
'is_super_admin' => array(), | |
'last_login' => array(), | |
'credit_card_number' => array(), | |
'credit_card_type' => array(), | |
'credit_card_expiry' => array(), | |
'created_at' => array(), | |
'updated_at' => array(), | |
'groups_list' => array(), | |
'permissions_list' => array(), | |
); | |
} | |
/** | |
* Gets the form class name. | |
* | |
* @return string The form class name | |
*/ | |
public function getFormClass() | |
{ | |
return 'sfGuardUserForm'; | |
} | |
public function hasFilterForm() | |
{ | |
return true; | |
} | |
/** | |
* Gets the filter form class name | |
* | |
* @return string The filter form class name associated with this generator | |
*/ | |
public function getFilterFormClass() | |
{ | |
return 'sfGuardUserFormFilter'; | |
} | |
public function getPagerClass() | |
{ | |
return 'sfDoctrinePager'; | |
} | |
public function getPagerMaxPerPage() | |
{ | |
return 20; | |
} | |
public function getDefaultSort() | |
{ | |
return array(null, null); | |
} | |
public function getTableMethod() | |
{ | |
return ''; | |
} | |
public function getTableCountMethod() | |
{ | |
return ''; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment