├── info ├── stability ├── summary └── maintainers ├── tests ├── Mock │ └── Solar │ │ ├── Path │ │ └── Stack │ │ │ ├── a │ │ │ ├── target1 │ │ │ ├── target2 │ │ │ └── target3 │ │ │ ├── b │ │ │ ├── target2 │ │ │ └── target3 │ │ │ └── c │ │ │ └── target3 │ │ ├── Json │ │ ├── fail4.json │ │ ├── fail8.json │ │ ├── fail2.json │ │ ├── fail23.json │ │ ├── fail24.json │ │ ├── fail27.json │ │ ├── fail28.json │ │ ├── fail19.json │ │ ├── fail20.json │ │ ├── fail5.json │ │ ├── fail6.json │ │ ├── fail7.json │ │ ├── fail9.json │ │ ├── fail11.json │ │ ├── fail12.json │ │ ├── fail14.json │ │ ├── fail15.json │ │ ├── fail16.json │ │ ├── fail17.json │ │ ├── fail21.json │ │ ├── fail22.json │ │ ├── fail25.json.txt │ │ ├── fail26.json │ │ ├── fail3.json │ │ ├── fail13.json │ │ ├── fail18.json │ │ ├── pass2.json │ │ ├── fail1.json │ │ ├── fail10.json │ │ └── pass3.json │ │ ├── View │ │ └── test.view.php │ │ ├── Controller │ │ └── Page │ │ │ └── View │ │ │ ├── bumpyCase.php │ │ │ └── foo.php │ │ ├── Auth │ │ └── Adapter │ │ │ ├── Htpasswd │ │ │ └── users.htpasswd │ │ │ └── Ini │ │ │ └── users.ini │ │ ├── Model │ │ ├── TestSolarDib │ │ │ └── Setup │ │ │ │ └── table_name.php │ │ ├── TestSolarFoo │ │ │ ├── Setup │ │ │ │ └── table_name.php │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── TestSolarSpecialCols │ │ │ ├── Setup │ │ │ │ └── table_name.php │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── TestSolarSqlDescribe │ │ │ ├── Setup │ │ │ │ └── table_name.php │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── Prefs │ │ │ ├── Record.php │ │ │ ├── Collection.php │ │ │ └── Locale │ │ │ │ └── en_US.php │ │ ├── Tags │ │ │ ├── Locale │ │ │ │ └── en_US.php │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── Users │ │ │ ├── Locale │ │ │ │ └── en_US.php │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── Taggings │ │ │ ├── Locale │ │ │ │ └── en_US.php │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── Areas │ │ │ ├── Locale │ │ │ │ └── en_US.php │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── Nodes │ │ │ ├── Record.php │ │ │ ├── Collection.php │ │ │ └── Locale │ │ │ │ └── en_US.php │ │ ├── Comments │ │ │ ├── Record.php │ │ │ ├── Collection.php │ │ │ └── Locale │ │ │ │ └── en_US.php │ │ ├── Metas │ │ │ ├── Record.php │ │ │ ├── Collection.php │ │ │ └── Locale │ │ │ │ └── en_US.php │ │ ├── Pages │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── Bookmarks │ │ │ ├── Record.php │ │ │ └── Collection.php │ │ ├── TestSolarBar.php │ │ ├── TestSolarBar │ │ │ └── Record.php │ │ ├── Pages.php │ │ ├── Bookmarks.php │ │ ├── TestSolarDib.php │ │ └── TestSolarSqlDescribe.php │ │ ├── Role │ │ └── Adapter │ │ │ ├── File │ │ │ └── roles.txt │ │ │ └── Sql │ │ │ └── roles.ini │ │ ├── callbacks.php │ │ ├── Config │ │ └── fetch.php │ │ ├── callbacks-function.php │ │ ├── callbacks-instance-method.php │ │ ├── callbacks-static-method.php │ │ ├── Access │ │ └── Adapter │ │ │ └── access.txt │ │ ├── Exception.php │ │ ├── Exception │ │ └── CustomCondition.php │ │ └── Locale │ │ ├── it_IT.php │ │ ├── pt_BR.php │ │ ├── es_ES.php │ │ ├── en_US.php │ │ └── fr_FR.php ├── Fixture │ └── Solar │ │ └── App │ │ └── Example.php └── Test │ └── Solar │ ├── Cache │ └── Adapter │ │ ├── Session.php │ │ ├── Var.php │ │ ├── Eaccelerator.php │ │ ├── Memcache.php │ │ └── Xcache.php │ ├── Auth │ ├── Logout │ │ └── Adapter │ │ │ ├── Get.php │ │ │ ├── Post.php │ │ │ ├── Multi.php │ │ │ └── Facebook.php │ ├── Storage │ │ └── Adapter │ │ │ ├── Var.php │ │ │ ├── Ldap.php │ │ │ ├── Mail.php │ │ │ ├── Post.php │ │ │ ├── Multi.php │ │ │ ├── External.php │ │ │ ├── Htpasswd.php │ │ │ └── Ini.php │ └── Login │ │ └── Adapter │ │ ├── Get.php │ │ ├── Post.php │ │ ├── Multi.php │ │ ├── None.php │ │ ├── Facebook.php │ │ ├── Typekey.php │ │ └── HttpBasic.php │ ├── Filter │ ├── SanitizeIpv4.php │ ├── ValidateIp.php │ ├── SanitizeUpload.php │ ├── ValidateNotInList.php │ ├── ValidateNotInKeys.php │ ├── ValidateUpload.php │ ├── SanitizeString.php │ ├── SanitizeWord.php │ ├── SanitizeStrReplace.php │ ├── SanitizeIsoDate.php │ ├── SanitizeIsoTime.php │ ├── SanitizePregReplace.php │ ├── SanitizeAlpha.php │ ├── SanitizeAlnum.php │ └── SanitizeIsoTimestamp.php │ ├── View │ └── Helper │ │ ├── FormLabel.php │ │ ├── Number.php │ │ ├── Pager.php │ │ ├── FormImage.php │ │ ├── Nl2p.php │ │ ├── FormInvalid.php │ │ ├── FormTimestamp.php │ │ ├── FormXhtml.php │ │ ├── FormStatic.php │ │ ├── Title.php │ │ ├── Base.php │ │ ├── Link.php │ │ ├── Meta.php │ │ ├── Script.php │ │ └── Image.php │ ├── Sql │ └── Model │ │ └── Related │ │ ├── ToOne.php │ │ └── ToMany.php │ ├── Role │ └── Adapter │ │ ├── File.php │ │ └── Ldap.php │ ├── Log │ └── Adapter │ │ └── Firephp.php │ ├── Smtp │ └── Adapter │ │ ├── NoAuth.php │ │ ├── LoginAuth.php │ │ ├── PlainAuth.php │ │ └── CramMd5Auth.php │ ├── Mail │ └── Transport │ │ └── Adapter │ │ ├── Echo.php │ │ ├── File.php │ │ ├── None.php │ │ ├── Smtp.php │ │ └── Phpmail.php │ ├── Session │ └── Handler │ │ └── Adapter │ │ ├── Sql.php │ │ └── Native.php │ ├── Access │ └── Adapter │ │ └── File.php │ └── User.php └── Solar ├── App ├── Hello │ └── View │ │ └── index.php └── Hello.php ├── Cli ├── Help │ └── Info │ │ ├── options.php │ │ └── help.txt ├── MakeCli │ ├── Data │ │ ├── help.php │ │ ├── options.php │ │ ├── locale.php │ │ └── cli.php │ ├── Locale │ │ └── en_US.php │ └── Info │ │ ├── help.txt │ │ └── options.php ├── LinkPublic │ └── Info │ │ ├── options.php │ │ └── help.txt ├── LinkVendor │ └── Info │ │ ├── options.php │ │ └── help.txt ├── MakeVendor │ ├── Info │ │ ├── options.php │ │ └── help.txt │ └── Data │ │ ├── Cli_Help_Info_options.txt │ │ ├── Filter.txt │ │ ├── Cli_Help.txt │ │ ├── Sql_Model.txt │ │ ├── Controller_Command.txt │ │ ├── Sql_Model_Record.txt │ │ ├── Controller_Page.txt │ │ ├── Sql_Model_Collection.txt │ │ ├── Sql_Model_Metadata.txt │ │ ├── Controller_Bread_View_delete.txt │ │ ├── Controller_Bread_View_add.txt │ │ ├── Controller_Bread_Locale_en-US.txt │ │ ├── Controller_Bread_View_read.txt │ │ ├── Controller_Bread_View_search.txt │ │ ├── Controller_Bread_View_edit.txt │ │ └── Controller_Bread_View_browse.txt ├── UnlinkVendor │ └── Info │ │ ├── options.php │ │ └── help.txt ├── MakeApp │ ├── Data │ │ ├── view-index.php │ │ ├── locale.php │ │ └── app.php │ └── Info │ │ ├── help.txt │ │ └── options.php ├── RunTests │ ├── Info │ │ └── help.txt │ └── Locale │ │ └── en_US.php ├── MakeDocs │ ├── Info │ │ ├── help.txt │ │ └── options.php │ └── Locale │ │ └── en_US.php ├── MakeDocbook │ ├── Info │ │ ├── help.txt │ │ └── options.php │ ├── Locale │ │ └── en_US.php │ └── Data │ │ ├── class-overview.txt │ │ ├── class-method.txt │ │ ├── class-methods.txt │ │ ├── class-config.txt │ │ ├── class-constants.txt │ │ ├── class-properties.txt │ │ ├── class-toc.txt │ │ ├── class-index.txt │ │ ├── package-index.txt │ │ ├── class.txt │ │ ├── package.txt │ │ ├── package-overview.txt │ │ └── apidoc.txt ├── MakeModel │ ├── Info │ │ └── help.txt │ ├── Data │ │ ├── record.php │ │ ├── collection.php │ │ ├── model-inherit.php │ │ ├── metadata.php │ │ └── model.php │ └── Locale │ │ └── en_US.php └── MakeTests │ ├── Locale │ └── en_US.php │ ├── Info │ ├── help.txt │ └── options.php │ └── Data │ ├── methodConcrete.php │ ├── methodAbstract.php │ ├── classConcrete.php │ ├── classAbstract.php │ └── classAdapterConcrete.php ├── Getopt ├── Locale │ └── en_US.php ├── Exception.php └── Exception │ └── UnknownOption.php ├── Sql ├── Select │ └── Locale │ │ └── en_US.php ├── Model │ ├── Catalog │ │ └── Locale │ │ │ └── en_US.php │ ├── Collection │ │ └── Locale │ │ │ └── en_US.php │ ├── Params │ │ └── Locale │ │ │ └── en_US.php │ ├── Exception.php │ ├── Record │ │ ├── Exception.php │ │ └── Exception │ │ │ └── Invalid.php │ ├── Locale │ │ └── en_US.php │ └── Related │ │ ├── Locale │ │ └── en_US.php │ │ └── HasOneOrNull.php ├── Exception.php └── Adapter │ ├── Exception.php │ └── Exception │ ├── ColType.php │ ├── TableNotCreated.php │ ├── ColSize.php │ ├── NoColsFound.php │ ├── ColScope.php │ ├── IdentifierLength.php │ └── QueryFailed.php ├── Request └── Locale │ └── en_US.php ├── Class ├── Map │ └── Locale │ │ └── en_US.php ├── Stack │ ├── Locale │ │ └── en_US.php │ ├── Exception.php │ └── Exception │ │ ├── ClassNotValid.php │ │ └── ClassNotFound.php ├── Exception.php └── Exception │ ├── AutoloadEmpty.php │ └── AutoloadFailed.php ├── Form ├── Load │ └── Locale │ │ └── en_US.php └── Locale │ └── en_US.php ├── Mail ├── Transport │ └── Adapter │ │ ├── Locale │ │ └── en_US.php │ │ ├── None.php │ │ └── Echo.php ├── Message │ └── Locale │ │ └── en_US.php ├── Exception.php └── Transport.php ├── Struct ├── Xml │ └── Locale │ │ └── en_US.php ├── Exception.php └── Exception │ └── NoSuchKey.php ├── Cache └── Adapter │ └── Locale │ └── en_US.php ├── Controller ├── Console │ ├── Locale │ │ └── en_US.php │ └── Exception.php ├── Command │ ├── Locale │ │ └── en_US.php │ ├── Exception.php │ └── Info │ │ └── options.php ├── Exception.php └── Page │ ├── Exception.php │ ├── Exception │ ├── ViewNotFound.php │ ├── LayoutNotFound.php │ ├── PropertyNotDefined.php │ ├── DuringFetch.php │ └── ActionNotFound.php │ ├── Layout │ └── default.php │ └── View │ ├── error.php │ ├── notFound.php │ └── exception.php ├── View ├── Locale │ └── en_US.php ├── Helper │ ├── Form │ │ └── Locale │ │ │ └── en_US.php │ ├── Link.php │ ├── Meta.php │ ├── FormXhtml.php │ ├── Title.php │ └── MetaName.php ├── Exception.php └── Exception │ ├── PartialNotFound.php │ └── TemplateNotFound.php ├── Service └── Akismet │ └── Locale │ └── en_US.php ├── Test ├── Suite │ ├── Locale │ │ └── en_US.php │ └── pre-test.php ├── Exception.php ├── Exception │ ├── Fail.php │ ├── Skip.php │ └── Todo.php └── Locale │ └── en_US.php ├── Symlink └── Locale │ └── en_US.php ├── Http └── Request │ └── Adapter │ └── Locale │ └── en_US.php ├── Smtp ├── Exception.php ├── Exception │ ├── NoHelo.php │ ├── NoRcpt.php │ ├── NoMail.php │ ├── Timeout.php │ ├── NoResponse.php │ ├── CannotOpenSocket.php │ ├── SecureType.php │ ├── SendFailed.php │ ├── CannotSetTimeout.php │ ├── NoConnection.php │ ├── CannotEnableTls.php │ └── UnexpectedResponse.php └── Adapter │ ├── NoAuth.php │ └── Locale │ └── en_US.php ├── Exception ├── NoClass.php ├── FileNotFound.php ├── NoConnection.php ├── NoVendor.php ├── DirNotFound.php ├── MkdirFailed.php ├── NoSuchProperty.php ├── RmdirFailed.php ├── ConnectionFailed.php ├── CsrfAttempt.php ├── ConnectionTimeout.php ├── FileNotReadable.php ├── ExtensionNotLoaded.php ├── MethodNotCallable.php ├── MethodNotImplemented.php └── UseOtherMethod.php ├── Debug └── Timer │ └── Locale │ ├── en_US.php │ ├── pt_BR.php │ ├── fr_FR.php │ └── de_DE.php ├── Auth ├── Locale │ ├── pt_BR.php │ ├── fr_FR.php │ └── de_DE.php ├── Login.php ├── Logout.php ├── Storage.php └── Storage │ └── Adapter.php ├── Role.php ├── Smtp.php ├── Cache.php ├── Role └── Adapter │ └── None.php ├── Session ├── Handler.php └── Manager.php ├── Sql.php ├── Access.php ├── Markdown └── Wiki │ └── Escape.php └── Filter ├── ValidateAlpha.php ├── ValidateNumeric.php ├── ValidateLocaleCode.php └── ValidateAlnum.php /info/stability: -------------------------------------------------------------------------------- 1 | stable -------------------------------------------------------------------------------- /tests/Mock/Solar/Path/Stack/a/target1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Path/Stack/a/target2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Path/Stack/a/target3: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Path/Stack/b/target2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Path/Stack/b/target3: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Path/Stack/c/target3: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Solar/App/Hello/View/index.php: -------------------------------------------------------------------------------- 1 | Hello World! -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail4.json: -------------------------------------------------------------------------------- 1 | ["extra comma",] -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail8.json: -------------------------------------------------------------------------------- 1 | ["Extra close"]] -------------------------------------------------------------------------------- /Solar/Cli/Help/Info/options.php: -------------------------------------------------------------------------------- 1 | foo ?> -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail12.json: -------------------------------------------------------------------------------- 1 | {"Illegal invocation": alert()} -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail14.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot be hex": 0x14} -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail15.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \x15"] -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail16.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \'"] -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail17.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \017"] -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail21.json: -------------------------------------------------------------------------------- 1 | {"Comma instead of colon", null} -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail22.json: -------------------------------------------------------------------------------- 1 | ["Colon instead of comma": false] -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Cli_Help_Info_options.txt: -------------------------------------------------------------------------------- 1 | {:php} return array(); -------------------------------------------------------------------------------- /tests/Mock/Solar/Controller/Page/View/bumpyCase.php: -------------------------------------------------------------------------------- 1 | found actionBumpyCase -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail25.json.txt: -------------------------------------------------------------------------------- 1 | ["tab character in string "] -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail26.json: -------------------------------------------------------------------------------- 1 | ["tab\ character\ in\ string\ "] -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail3.json: -------------------------------------------------------------------------------- 1 | {unquoted_key: "keys must be quoted"} -------------------------------------------------------------------------------- /tests/Mock/Solar/Controller/Page/View/foo.php: -------------------------------------------------------------------------------- 1 | foo; -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail13.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot have leading zeroes": 013} -------------------------------------------------------------------------------- /tests/Mock/Solar/Auth/Adapter/Htpasswd/users.htpasswd: -------------------------------------------------------------------------------- 1 | pmjones:UeqlXaN8LfL2U 2 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail18.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /Solar/Cli/MakeApp/Data/view-index.php: -------------------------------------------------------------------------------- 1 | getText('TEXT_WELCOME'); ?> 2 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/pass2.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail1.json: -------------------------------------------------------------------------------- 1 | "A JSON payload should be an object or array, not a string." -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/fail10.json: -------------------------------------------------------------------------------- 1 | {"Extra value after close": true} "misplaced quoted value" -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarDib/Setup/table_name.php: -------------------------------------------------------------------------------- 1 | 'This is your new command.', 3 | ); 4 | -------------------------------------------------------------------------------- /tests/Fixture/Solar/App/Example.php: -------------------------------------------------------------------------------- 1 | 'Welcome to your new application.', 3 | ); 4 | -------------------------------------------------------------------------------- /Solar/Getopt/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Unknown option "{:name}".', 3 | ); 4 | -------------------------------------------------------------------------------- /Solar/Sql/Select/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Select part "{:part}" is unknown.', 3 | ); -------------------------------------------------------------------------------- /Solar/Request/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Could not find "{:key}" in POST or FILES.', 3 | ); -------------------------------------------------------------------------------- /tests/Mock/Solar/callbacks.php: -------------------------------------------------------------------------------- 1 | 'Could not find base directory for {:class}.', 3 | ); -------------------------------------------------------------------------------- /Solar/Form/Load/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'The loading origin is not a model object.', 3 | ); -------------------------------------------------------------------------------- /Solar/Mail/Transport/Adapter/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'No return path was specified.', 3 | ); -------------------------------------------------------------------------------- /tests/Mock/Solar/Config/fetch.php: -------------------------------------------------------------------------------- 1 | 'bar', 4 | 'baz' => 'sub', 5 | 'zim' => 'gir', 6 | ); -------------------------------------------------------------------------------- /Solar/Cli/RunTests/Info/help.txt: -------------------------------------------------------------------------------- 1 | Runs the suite for a given test class series. 2 | 3 | Usage: %*solar run-tests %n 4 | -------------------------------------------------------------------------------- /Solar/Struct/Xml/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Cannot load the struct; unrecognized load origin.', 3 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeDocs/Info/help.txt: -------------------------------------------------------------------------------- 1 | Makes wiki-like API documentation files for a Vendor class series. 2 | 3 | Usage: %*solar make-docs %n 4 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Info/help.txt: -------------------------------------------------------------------------------- 1 | Makes all the basic classes and files for a new vendor name. 2 | 3 | Usage: %*solar make-vendor %n 4 | -------------------------------------------------------------------------------- /Solar/Sql/Model/Catalog/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'The catalog has the name "{:name}" set already.', 3 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeApp/Info/help.txt: -------------------------------------------------------------------------------- 1 | Makes an application class and all of its support directories. 2 | 3 | Usage: %*solar make-app %n 4 | -------------------------------------------------------------------------------- /Solar/Cli/MakeCli/Info/help.txt: -------------------------------------------------------------------------------- 1 | Makes a command-line class and all of its support directories. 2 | 3 | Usage: %*solar make-cli %n 4 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Info/help.txt: -------------------------------------------------------------------------------- 1 | Makes wiki-like API documentation files for a Vendor class series. 2 | 3 | Usage: %*solar make-docs %n 4 | -------------------------------------------------------------------------------- /Solar/Cli/MakeModel/Info/help.txt: -------------------------------------------------------------------------------- 1 | Makes a model class and all of its support directories. 2 | 3 | Usage: %*solar make-model %n 4 | -------------------------------------------------------------------------------- /info/summary: -------------------------------------------------------------------------------- 1 | Solar is a framework for PHP 5 that provides well-structured E_STRICT class libraries for the common aspects of application development. 2 | -------------------------------------------------------------------------------- /tests/Mock/Solar/callbacks-function.php: -------------------------------------------------------------------------------- 1 | 'The last character in file "{:file}" should be a closing brace.', 3 | ); -------------------------------------------------------------------------------- /Solar/Sql/Model/Collection/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Could not find the specified record in the collection.', 3 | ); -------------------------------------------------------------------------------- /tests/Mock/Solar/Role/Adapter/Sql/roles.ini: -------------------------------------------------------------------------------- 1 | [admin] 2 | handles = pmjones,boshag 3 | 4 | [user] 5 | handles = nobody 6 | 7 | [root] 8 | handles = pmjones 9 | -------------------------------------------------------------------------------- /Solar/Cli/MakeModel/Data/record.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * A single {:class} record. 4 | * 5 | */ 6 | class {:class}_Record extends {:extends}_Record 7 | { 8 | } 9 | -------------------------------------------------------------------------------- /Solar/Cli/Help/Info/help.txt: -------------------------------------------------------------------------------- 1 | Solar command-line tool. 2 | 3 | Usage: %*solar %n 4 | 5 | Try 'solar help ' for help on a specific command. -------------------------------------------------------------------------------- /Solar/Cache/Adapter/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Could not save key {:key}.', 3 | 'ERR_CANNOT_ADD' => 'Could not add key {:key}.', 4 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeTests/Info/help.txt: -------------------------------------------------------------------------------- 1 | Makes test classes and stub test methods for a given class and its 2 | subdirectories. 3 | 4 | Usage: %*solar make-tests %n 5 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Filter.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * Filter class. 5 | * 6 | */ 7 | class {:vendor}_Filter extends Solar_Filter 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /Solar/Cli/MakeModel/Data/collection.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * A collection of {:class} records. 4 | * 5 | */ 6 | class {:class}_Collection extends {:extends}_Collection 7 | { 8 | } 9 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Cli_Help.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * CLI help class. 5 | * 6 | */ 7 | class {:vendor}_Cli_Help extends Solar_Cli_Help 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /Solar/Cli/UnlinkVendor/Info/help.txt: -------------------------------------------------------------------------------- 1 | Removes the symbolic links leading to source/vendor from the remainder of the 2 | project system. 3 | 4 | Usage: %*solar link-vendor %n 5 | -------------------------------------------------------------------------------- /Solar/Cli/LinkPublic/Info/help.txt: -------------------------------------------------------------------------------- 1 | Creates symbolic links from all Vendor class "Public" subdirectores to the 2 | docroot/public directory. 3 | 4 | Usage: %*solar link-public %n 5 | -------------------------------------------------------------------------------- /Solar/Controller/Console/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Command "{:cmd}" not found.', 4 | 'ERR_NO_COMMAND' => 'No command given.', 5 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Sql_Model.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * Base model class. 5 | * 6 | */ 7 | abstract class {:vendor}_Sql_Model extends Solar_Sql_Model 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Json/pass3.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Solar/Mail/Message/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'The message has no parts in it.', 3 | 'ERR_NO_TRANSPORT' => 'No transport has been specified.', 4 | ); -------------------------------------------------------------------------------- /Solar/Class/Stack/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Class "{:class}" not found in the class stack.', 3 | 'ERR_CLASS_NOT_VALID' => 'Class name "{:class}" is not valid.', 4 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Command.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * Command class. 5 | * 6 | */ 7 | class {:vendor}_Controller_Command extends Solar_Controller_Command 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /Solar/View/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Template "{:name}" not found in path stack.', 3 | 'ERR_PARTIAL_NOT_FOUND' => 'Partial "{:name}" not found in path stack.', 4 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeModel/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Cannot determine table name for class "{:class}".', 3 | 'ERR_NO_COLS' => 'No columns found for table "{:table}".', 4 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Sql_Model_Record.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * Base model record class. 5 | * 6 | */ 7 | class {:vendor}_Sql_Model_Record extends Solar_Sql_Model_Record 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Prefs/Record.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 10 | } 11 | -------------------------------------------------------------------------------- /Solar/Form/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'The element "{:name}" does not exist in the form.', 3 | 'ERR_STATUS_NOT_ALLOWED' => 'Th status value "{:status}" is not allowed.', 4 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'No directory specified for writing out classes.', 3 | 'ERR_NO_PACKAGE_DIR' => 'No directory specified for writing out packages.', 4 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Page.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * Base page-controller class. 5 | * 6 | */ 7 | abstract class {:vendor}_Controller_Page extends Solar_Controller_Page 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /Solar/Cli/RunTests/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'No test specification was given.', 3 | 'ERR_TEST_CONFIG_REALPATH' => 'Could not find real path to test config file "{:file}".', 4 | ); 5 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Tags/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_NAME' => 'Name', 4 | 'LABEL_SUMM' => 'Summ', 5 | 'DESCR_ID' => '', 6 | 'DESCR_NAME' => '', 7 | 'DESCR_SUMM' => '', 8 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeTests/Data/methodAbstract.php: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * 4 | * Test -- {:summ} 5 | * 6 | */ 7 | public function {:name}() 8 | { 9 | $this->skip('abstract method'); 10 | } 11 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Sql_Model_Collection.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * Base model collection class. 5 | * 6 | */ 7 | class {:vendor}_Sql_Model_Collection extends Solar_Sql_Model_Collection 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Sql_Model_Metadata.txt: -------------------------------------------------------------------------------- 1 | {:php} 2 | /** 3 | * 4 | * Table metadata for the model class. 5 | * 6 | */ 7 | class {:vendor}_Sql_Model_Metadata extends Solar_Sql_Model_Metadata 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Prefs/Collection.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_HANDLE' => 'Handle', 4 | 'LABEL_PASSWD' => 'Passwd', 5 | 'DESCR_ID' => '', 6 | 'DESCR_HANDLE' => '', 7 | 'DESCR_PASSWD' => '', 8 | ); -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Taggings/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_NODE_ID' => 'Node Id', 4 | 'LABEL_TAG_ID' => 'Tag Id', 5 | 'DESCR_ID' => '', 6 | 'DESCR_NODE_ID' => '', 7 | 'DESCR_TAG_ID' => '', 8 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeCli/Info/options.php: -------------------------------------------------------------------------------- 1 | array( 4 | 'long' => 'extends', 5 | 'descr' => 'The CLI class should extend from this class name.', 6 | 'param' => 'required', 7 | ), 8 | ); 9 | -------------------------------------------------------------------------------- /Solar/Service/Akismet/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'API key "{:key}" invalide for blog "{:blog}": {:debug}', 3 | 'ERR_UNKNOWN_RESPONSE' => 'Received unknown response from Akismet.', 4 | 'ERR_UNKNOWN_CALL' => 'Unknown API call "{:call}".', 5 | ); -------------------------------------------------------------------------------- /Solar/Test/Suite/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Could not load tests from class series "{:class}" method "{:method}": ({:exit_code}) {:last_line}', 3 | 'ERR_FIND_TESTS' => 'Could not find any tests for class series "{:class}" method "{:method}".', 4 | ); 5 | -------------------------------------------------------------------------------- /Solar/Cli/LinkVendor/Info/help.txt: -------------------------------------------------------------------------------- 1 | Creates symbolic links source/vendor to the appropriate places in the 2 | project system, including: 3 | 4 | - include/Vendor 5 | - include/Test/Vendor 6 | - include/Mock/Vendor 7 | - docroot/public/Vendor 8 | 9 | Usage: %*solar link-vendor %n 10 | -------------------------------------------------------------------------------- /Solar/Cli/MakeTests/Info/options.php: -------------------------------------------------------------------------------- 1 | array( 4 | 'long' => 'only', 5 | 'param' => null, 6 | 'value' => false, 7 | 'descr' => 'Make tests only for the named class; do not descend into subdirectories.', 8 | ), 9 | ); 10 | -------------------------------------------------------------------------------- /Solar/Symlink/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Source (origin) "{:src}" not found.', 3 | 'ERR_TARGET_EXISTS' => 'File or directory already exists at "{:tgt}".', 4 | 'ERR_WINDOWS_VERSION' => 'Need to use Windows version 6 or later for symlinks.', 5 | ); 6 | -------------------------------------------------------------------------------- /Solar/Sql/Model/Params/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Join type "{:join_type}" unknown; use {:known}.', 3 | 'ERR_UNKNOWN_MERGE' => 'Merge type "{:merge}" unknown; use {:known}.', 4 | 'ERR_UNKNOWN_NATIVE_BY' => 'Native-by "{:native_by}" unknown; use {:known}.', 5 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class-overview.txt: -------------------------------------------------------------------------------- 1 | 2 |
7 | 8 | Overview 9 | 10 | {:info} 11 | 12 |
13 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Auth/Adapter/Ini/users.ini: -------------------------------------------------------------------------------- 1 | [pmjones] 2 | passwd = jones 3 | moniker = Paul M. Jones 4 | email = pmjones@solarphp.com 5 | uri = http://paul-m-jones.com 6 | 7 | [boshag] 8 | passwd = shagnasty 9 | moniker = Bolivar O. Shagnasty 10 | email = boshag@example.com 11 | uri = http://example.com/ 12 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class-method.txt: -------------------------------------------------------------------------------- 1 | 2 |
7 | 8 | {:class}::{:method} 9 | 10 | {:info} 11 | 12 |
13 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocs/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'No directory specified for writing out classes.', 3 | 'ERR_NO_PACKAGE_DIR' => 'No directory specified for writing out packages.', 4 | 'ERR_CANNOT_MKDIR_FILE' => 'Cannot create directory "{:dir}". A file with that name already exists.', 5 | ); 6 | -------------------------------------------------------------------------------- /Solar/Http/Request/Adapter/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Username "{:handle}" is not allowed to have a colon.', 3 | 'ERR_NO_URI' => 'No URI specified.', 4 | 'ERR_UNKNOWN_METHOD' => 'HTTP method "{:method}" is unknown.', 5 | 'ERR_UNKNOWN_VERSION' => 'HTTP version "{:version}" is unknown.', 6 | ); -------------------------------------------------------------------------------- /Solar/Controller/Command/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'One more more options is invalid.', 3 | 'HELP_TRY_SOLAR_HELP' => 'Try %Ksolar help%n for a list of commands.', 4 | 'HELP_VALID_OPTIONS' => 'Valid options for this command are ...', 5 | 'HELP_AVAILABLE_COMMANDS' => 'Available commands are:', 6 | ); 7 | -------------------------------------------------------------------------------- /Solar/Cli/MakeCli/Data/cli.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Generic command. 4 | * 5 | */ 6 | class {:class} extends {:extends} 7 | { 8 | /** 9 | * 10 | * Execute generic command. 11 | * 12 | * @return void 13 | * 14 | */ 15 | protected function _exec() 16 | { 17 | $this->_outln('TEXT_WELCOME'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Solar/Cli/MakeModel/Data/model-inherit.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Inherited model class. 4 | * 5 | */ 6 | class {:class} extends {:extends} 7 | { 8 | /** 9 | * 10 | * Model-specific setup. 11 | * 12 | * @return void 13 | * 14 | */ 15 | protected function _setup() 16 | { 17 | parent::_setup(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Prefs/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_USER_ID' => 'User Id', 4 | 'LABEL_EMAIL' => 'Email', 5 | 'LABEL_URI' => 'Uri', 6 | 'LABEL_MONIKER' => 'Moniker', 7 | 'DESCR_ID' => '', 8 | 'DESCR_USER_ID' => '', 9 | 'DESCR_EMAIL' => '', 10 | 'DESCR_URI' => '', 11 | 'DESCR_MONIKER' => '', 12 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Bread_View_delete.txt: -------------------------------------------------------------------------------- 1 |

escape(ucwords($this->controller)); ?>

2 |

getText('HEADING_DELETE'); ?>

3 | 4 | partial('_item', $this->item); ?> 5 | 6 | form() 7 | ->addProcess('delete_confirm') 8 | ->fetch(); 9 | ?> 10 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Areas/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_CREATED' => 'Created', 4 | 'LABEL_UPDATED' => 'Updated', 5 | 'LABEL_USER_ID' => 'User Id', 6 | 'LABEL_NAME' => 'Name', 7 | 'DESCR_ID' => '', 8 | 'DESCR_CREATED' => '', 9 | 'DESCR_UPDATED' => '', 10 | 'DESCR_USER_ID' => '', 11 | 'DESCR_NAME' => '', 12 | ); -------------------------------------------------------------------------------- /Solar/Sql/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Exception extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Struct/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Struct_Exception extends Solar_Exception { 18 | } -------------------------------------------------------------------------------- /Solar/View/Helper/Form/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Form element "{:name}" has no type.', 3 | 'ERR_NO_ELEMENT_NAME' => 'Form element has no name.', 4 | 'ERR_CALL_ARGS' => 'Magic method {:type}() requires a non-empty element descriptor array argument.', 5 | 'ERR_CALL_INFO' => 'Magic method {:type}() requires an element descriptor array.', 6 | ); -------------------------------------------------------------------------------- /Solar/Class/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Class_Exception extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class-methods.txt: -------------------------------------------------------------------------------- 1 | 2 |
7 | 8 | Methods 9 | 10 | All methods in the {:class} class. 11 | 12 | {:info} 13 | 14 |
15 | -------------------------------------------------------------------------------- /Solar/Getopt/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Getopt_Exception extends Solar_Exception {} -------------------------------------------------------------------------------- /Solar/Test/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Test_Exception extends Solar_Exception 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /Solar/Class/Stack/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Class_Stack_Exception extends Solar_Exception {} -------------------------------------------------------------------------------- /Solar/Mail/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Mail_Exception extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Adapter_Exception extends Solar_Sql_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/View/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_View_Exception extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class-config.txt: -------------------------------------------------------------------------------- 1 | 2 |
7 | 8 | Configuration 9 | 10 | Configuration keys for the {:class} class. 11 | 12 | {:info} 13 | 14 |
15 | -------------------------------------------------------------------------------- /Solar/Exception/NoClass.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_NoClass extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Access/Adapter/access.txt: -------------------------------------------------------------------------------- 1 | deny handle * * * 2 | allow role bar Fixture_Solar_App_Example * 3 | deny role foo Fixture_Solar_App_Example * 4 | allow handle gir Fixture_Solar_App_Example2 * 5 | allow handle gir Fixture_Solar_App_Example3 read 6 | allow handle + Fixture_Solar_App_Example4 * 7 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class-constants.txt: -------------------------------------------------------------------------------- 1 | 2 |
7 | 8 | Constants 9 | 10 | Constants defined in the {:class} class. 11 | 12 | {:info} 13 | 14 |
15 | -------------------------------------------------------------------------------- /Solar/Exception/FileNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_FileNotFound extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/NoConnection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_NoConnection extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/NoVendor.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_NoVendor extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class-properties.txt: -------------------------------------------------------------------------------- 1 | 2 |
7 | 8 | Properties 9 | 10 | Properties existing in the {:class} class. 11 | 12 | {:info} 13 | 14 |
15 | -------------------------------------------------------------------------------- /Solar/Controller/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Exception extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/DirNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_DirNotFound extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Test/Exception/Fail.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Test_Exception_Fail extends Solar_Test_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Test/Exception/Skip.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Test_Exception_Skip extends Solar_Test_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Test/Solar/Cache/Adapter/Session.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_MkdirFailed extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/NoSuchProperty.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_NoSuchProperty extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/RmdirFailed.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_RmdirFailed extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Test/Exception/Todo.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Test_Exception_Todo extends Solar_Test_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/NoHelo.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_NoHelo extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/NoRcpt.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_NoRcpt extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Model/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Model_Exception extends Solar_Sql_Exception {} -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Bread_View_add.txt: -------------------------------------------------------------------------------- 1 |

escape(ucwords($this->controller)); ?>

2 |

getText('HEADING_ADD'); ?>

3 | 4 | form() 5 | ->auto($this->form) 6 | ->addProcessGroup(array( 7 | 'save', 8 | 'cancel', 9 | )) 10 | ->fetch(); 11 | ?> 12 | -------------------------------------------------------------------------------- /Solar/Exception/ConnectionFailed.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_ConnectionFailed extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/CsrfAttempt.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_CsrfAttempt extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/NoMail.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_NoMail extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/Timeout.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_Timeout extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Model/Record/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Model_Record_Exception extends Solar_Sql_Model_Exception {} -------------------------------------------------------------------------------- /Solar/Class/Exception/AutoloadEmpty.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Class_Exception_AutoloadEmpty extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/ConnectionTimeout.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_ConnectionTimeout extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/FileNotReadable.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_FileNotReadable extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/NoResponse.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_NoResponse extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Areas/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Areas_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Nodes/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Nodes_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Tags/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Tags_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Users/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Users_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Class/Exception/AutoloadFailed.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Class_Exception_AutoloadFailed extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Controller/Console/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Console_Exception extends Solar_Controller_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Controller/Page/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Page_Exception extends Solar_Controller_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/ExtensionNotLoaded.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_ExtensionNotLoaded extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/MethodNotCallable.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_MethodNotCallable extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/MethodNotImplemented.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_MethodNotImplemented extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/CannotOpenSocket.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_CannotOpenSocket extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/SecureType.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_SecureType extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/SendFailed.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_SendFailed extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Controller/Command/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Command_Exception extends Solar_Controller_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Exception/UseOtherMethod.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Exception_UseOtherMethod extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/CannotSetTimeout.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_CannotSetTimeout extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception/ColType.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Adapter_Exception_ColType extends Solar_Sql_Adapter_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Struct/Exception/NoSuchKey.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Struct_Exception_NoSuchKey extends Solar_Exception { 18 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Comments/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Comments_Record extends Solar_Sql_Model_Record { 18 | } 19 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Metas/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Metas_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Smtp/Exception/NoConnection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_NoConnection extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Model/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Data for {:method} must be an array.', 3 | 'ERR_RELATED_CONFLICT' => 'Model class "{:class}" cannot use "{:name}" as a related name, because a column of that name already exists.', 4 | 'ERR_RELATED_EXISTS' => 'Model class "{:class}" already has a "{:name}" related.', 5 | 'ERR_NO_SUCH_RELATED' => 'Model class "{:class}" does not have a "{:name}" related.', 6 | ); -------------------------------------------------------------------------------- /Solar/View/Exception/PartialNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_View_Exception_PartialNotFound extends Solar_View_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/View/Exception/TemplateNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_View_Exception_TemplateNotFound extends Solar_View_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Exception extends Solar_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarFoo/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarFoo_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Getopt/Exception/UnknownOption.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Getopt_Exception_UnknownOption extends Solar_Getopt_Exception {} -------------------------------------------------------------------------------- /Solar/Smtp/Exception/CannotEnableTls.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_CannotEnableTls extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Smtp/Exception/UnexpectedResponse.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Exception_UnexpectedResponse extends Solar_Smtp_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception/TableNotCreated.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Adapter_Exception_TableNotCreated extends Solar_Sql_Adapter_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Areas/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Areas_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Nodes/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Nodes_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Pages/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Pages_Record extends Mock_Solar_Model_Nodes_Record { 18 | } 19 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Tags/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Tags_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Users/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Users_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception/ColSize.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Adapter_Exception_ColSize extends Solar_Sql_Adapter_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception/NoColsFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Adapter_Exception_NoColsFound extends Solar_Sql_Adapter_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Taggings/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Taggings_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Bookmarks/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Bookmarks_Record extends Mock_Solar_Model_Nodes_Record { 18 | } 19 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Comments/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Comments_Collection extends Solar_Sql_Model_Collection { 18 | } 19 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Metas/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Metas_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Class/Stack/Exception/ClassNotValid.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Class_Stack_Exception_ClassNotValid extends Solar_Class_Stack_Exception {} -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception/ColScope.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Adapter_Exception_ColScope extends Solar_Sql_Adapter_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Model/Record/Exception/Invalid.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Model_Record_Exception_Invalid extends Solar_Sql_Model_Record_Exception {} -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Pages/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Pages_Collection extends Mock_Solar_Model_Nodes_Collection { 18 | } 19 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarSqlDescribe/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarSqlDescribe_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarBar.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarBar extends Mock_Solar_Model_TestSolarFoo 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarSpecialCols/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarSpecialCols_Record extends Solar_Sql_Model_Record 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Class/Stack/Exception/ClassNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Class_Stack_Exception_ClassNotFound extends Solar_Class_Stack_Exception {} -------------------------------------------------------------------------------- /tests/Mock/Solar/Exception/CustomCondition.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Exception_CustomCondition extends Mock_Solar_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Bookmarks/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Bookmarks_Collection extends Mock_Solar_Model_Nodes_Collection { 18 | } 19 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarFoo/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarFoo_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Test/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'ERR_TODO' => 'todo', 19 | 'ERR_SKIP' => 'skip', 20 | 'ERR_FAIL' => 'fail', 21 | ); 22 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Taggings/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Taggings_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Cli/MakeApp/Info/options.php: -------------------------------------------------------------------------------- 1 | array( 4 | 'long' => 'extends', 5 | 'descr' => 'The app class should extend from this class name.', 6 | 'param' => 'required', 7 | ), 8 | 'model-name' => array( 9 | 'long' => 'model-name', 10 | 'descr' => 'Create a browse/read/edit/add/delete app using this model name from the model catalog.', 11 | 'param' => 'required', 12 | ), 13 | ); 14 | -------------------------------------------------------------------------------- /Solar/Controller/Page/Exception/ViewNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Page_Exception_ViewNotFound extends Solar_Controller_Page_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Comments/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_CREATED' => 'Created', 4 | 'LABEL_UPDATED' => 'Updated', 5 | 'LABEL_NODE_ID' => 'Node Id', 6 | 'LABEL_EMAIL' => 'Email', 7 | 'LABEL_URI' => 'Uri', 8 | 'LABEL_BODY' => 'Body', 9 | 'DESCR_ID' => '', 10 | 'DESCR_CREATED' => '', 11 | 'DESCR_UPDATED' => '', 12 | 'DESCR_NODE_ID' => '', 13 | 'DESCR_EMAIL' => '', 14 | 'DESCR_URI' => '', 15 | 'DESCR_BODY' => '', 16 | ); -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarSpecialCols/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarSpecialCols_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Controller/Page/Exception/LayoutNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Page_Exception_LayoutNotFound extends Solar_Controller_Page_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Controller/Page/Exception/PropertyNotDefined.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Page_Exception_PropertyNotDefined extends Solar_Controller_Page_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception/IdentifierLength.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Sql_Adapter_Exception_IdentifierLength extends Solar_Sql_Adapter_Exception {} 18 | -------------------------------------------------------------------------------- /Solar/Controller/Page/Exception/DuringFetch.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Page_Exception_DuringFetch extends Solar_Controller_Page_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Locale/it_IT.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'ERR_EXAMPLE' => 'Ciò è un messaggio di errore.', 19 | 'HELLO_WORLD' => 'ciao mondo', 20 | 'APPLE' => array('mela', 'mele') 21 | ); -------------------------------------------------------------------------------- /tests/Mock/Solar/Locale/pt_BR.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'ERR_EXAMPLE' => 'esta é uma mensagem de erro.', 19 | 'HELLO_WORLD' => 'Olá, mundo.', 20 | 'APPLE' => array('maçã', 'maçãs'), 21 | ); -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarBar/Record.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarBar_Record extends Mock_Solar_Model_TestSolarFoo_Record 18 | { 19 | } -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarSqlDescribe/Collection.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarSqlDescribe_Collection extends Solar_Sql_Model_Collection 18 | { 19 | } -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class-toc.txt: -------------------------------------------------------------------------------- 1 | 2 | %xinclude; 7 | ] 8 | > 9 | 14 | 15 | {:class} 16 | 17 | {:xinc} 18 | 19 | 20 | -------------------------------------------------------------------------------- /Solar/Controller/Page/Exception/ActionNotFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Controller_Page_Exception_ActionNotFound extends Solar_Controller_Page_Exception {} 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Locale/es_ES.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'ERR_EXAMPLE' => 'Esto es un mensaje de error.', 19 | 'HELLO_WORLD' => 'hola mundo', 20 | 'APPLE' => array('manzana', 'manzanas'), 21 | ); -------------------------------------------------------------------------------- /tests/Test/Solar/Cache/Adapter/Var.php: -------------------------------------------------------------------------------- 1 | 2 | %xinclude; 7 | ] 8 | > 9 | 14 | 15 | Index of Classes 16 | 17 | {:classes} 18 | 19 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/package-index.txt: -------------------------------------------------------------------------------- 1 | 2 | %xinclude; 7 | ] 8 | > 9 | 14 | 15 | Index of Packages 16 | 17 | {:packages} 18 | 19 | -------------------------------------------------------------------------------- /Solar/Cli/MakeModel/Data/metadata.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Table metadata for the {:class} model class. 4 | * 5 | * This class is auto-generated by make-model; any changes you make will be 6 | * overwritten the next time you use make-model. Modify the {:class} 7 | * class instead of this one. 8 | * 9 | */ 10 | class {:class}_Metadata extends {:extends}_Metadata 11 | { 12 | public $table_name = {:table_name}; 13 | 14 | public $table_cols = {:table_cols}; 15 | 16 | public $index_info = {:index_info}; 17 | } 18 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Metas/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_NODE_ID' => 'Node Id', 4 | 'LABEL_LAST_COMMENT_ID' => 'Last Comment Id', 5 | 'LABEL_LAST_COMMENT_BY' => 'Last Comment By', 6 | 'LABEL_LAST_COMMENT_AT' => 'Last Comment At', 7 | 'LABEL_COMMENT_COUNT' => 'Comment Count', 8 | 'DESCR_ID' => '', 9 | 'DESCR_NODE_ID' => '', 10 | 'DESCR_LAST_COMMENT_ID' => '', 11 | 'DESCR_LAST_COMMENT_BY' => '', 12 | 'DESCR_LAST_COMMENT_AT' => '', 13 | 'DESCR_COMMENT_COUNT' => '', 14 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeApp/Data/app.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Generic application. 4 | * 5 | */ 6 | class {:class} extends {:extends} 7 | { 8 | /** 9 | * 10 | * The default action when no action is specified. 11 | * 12 | * @var string 13 | * 14 | */ 15 | protected $_action_default = 'index'; 16 | 17 | /** 18 | * 19 | * Generic index action. 20 | * 21 | * @return void 22 | * 23 | */ 24 | public function actionIndex() 25 | { 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Solar/Debug/Timer/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'LABEL_NAME' => 'name', 19 | 'LABEL_TIME' => 'time', 20 | 'LABEL_DIFF' => 'diff', 21 | 'LABEL_TOTAL' => 'total', 22 | ); 23 | -------------------------------------------------------------------------------- /Solar/Debug/Timer/Locale/pt_BR.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'LABEL_NAME' => 'nome', 19 | 'LABEL_TIME' => 'tempo', 20 | 'LABEL_DIFF' => 'diferença', 21 | 'LABEL_TOTAL' => 'total', 22 | ); 23 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/class.txt: -------------------------------------------------------------------------------- 1 | 2 | 7 | %xinclude; 8 | ] 9 | > 10 | 15 | 16 | Classes 17 | 18 | 19 | {:xinc} 20 | 21 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/package.txt: -------------------------------------------------------------------------------- 1 | 2 | 7 | %xinclude; 8 | ] 9 | > 10 | 15 | 16 | Packages 17 | 18 | 19 | {:xinc} 20 | 21 | -------------------------------------------------------------------------------- /Solar/Debug/Timer/Locale/fr_FR.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'LABEL_NAME' => 'nom', 19 | 'LABEL_TIME' => 'heure', 20 | 'LABEL_DIFF' => 'diff', 21 | 'LABEL_TOTAL' => 'total', 22 | ); 23 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'ERR_EXAMPLE' => 'This is an error message.', 19 | 'HELLO_WORLD' => 'hello world', 20 | 'APPLE' => array('apple', 'apples'), 21 | 'ENGLISH_ONLY' => 'key is only in en_US file', 22 | ); -------------------------------------------------------------------------------- /Solar/Controller/Page/Layout/default.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | ?> 18 | 19 | 20 | 21 | head()->fetch(); ?> 22 | 23 | 24 | 25 | layout_content; ?> 26 | 27 | 28 | -------------------------------------------------------------------------------- /Solar/Debug/Timer/Locale/de_DE.php: -------------------------------------------------------------------------------- 1 | 13 | * 14 | * @license http://opensource.org/licenses/bsd-license.php BSD 15 | * 16 | * @version $Id$ 17 | * 18 | */ 19 | return array( 20 | 'LABEL_NAME' => 'Name', 21 | 'LABEL_TIME' => 'Zeit', 22 | 'LABEL_DIFF' => 'Differenz', 23 | 'LABEL_TOTAL' => 'Summe', 24 | ); 25 | -------------------------------------------------------------------------------- /Solar/Sql/Adapter/Exception/QueryFailed.php: -------------------------------------------------------------------------------- 1 | 14 | * 15 | * @license http://opensource.org/licenses/bsd-license.php BSD 16 | * 17 | * @version $Id$ 18 | * 19 | */ 20 | class Solar_Sql_Adapter_Exception_QueryFailed extends Solar_Sql_Adapter_Exception {} 21 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Logout/Adapter/Get.php: -------------------------------------------------------------------------------- 1 | _request->get['process'] = $this->_adapter->locale('PROCESS_LOGOUT'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/package-overview.txt: -------------------------------------------------------------------------------- 1 | 2 | %xinclude; 7 | ] 8 | > 9 | 14 | 15 | {:name} 16 | 17 | Classes in the {:name} package: 18 | 19 | {:info} 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Logout/Adapter/Post.php: -------------------------------------------------------------------------------- 1 | _request->post['process'] = $this->_adapter->locale('PROCESS_LOGOUT'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/Test/Solar/Cache/Adapter/Eaccelerator.php: -------------------------------------------------------------------------------- 1 | array( 18 | 'pmjones' => 'jones' 19 | ) 20 | ); 21 | 22 | protected $_expect = array( 23 | 'handle' => 'pmjones', 24 | ); 25 | } 26 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeIpv4.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Locale/fr_FR.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'ERR_EXAMPLE' => "Ceci est un message d'erreur.", 19 | 'BONJOUR_LEMONDE' => 'Bonjour, le Monde', 20 | 'POMME' => array('pomme', 'pommes'), 21 | 'FRENCH_ONLY' => 'clé uniquement dans le fichier fr_FR', 22 | ); -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/ValidateIp.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/FormLabel.php: -------------------------------------------------------------------------------- 1 | tag for a form element. 22 | * 23 | */ 24 | public function testFormLabel() 25 | { 26 | $this->todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Solar/Sql/Model/Related/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'The relationship class {:class} does not know if it should fetchOne() or fetchAll().', 3 | 'ERR_UNKNOWN_NATIVE_BY' => '{:native} related {:name} uses unknown native_by "{:native_by}"; use {:known} instead.', 4 | 'ERR_NO_RELATED_RECORD' => '{:native} does not have a related "{:name}" record.', 5 | 'ERR_UNKNOWN_FETCH' => 'Unknown fetch "{:fetch}"; use {:known} instead.', 6 | 'ERR_UNKNOWN_MERGE' => 'Unknown merge "{:merge}"; use {:known} instead.', 7 | 'ERR_UNKNOWN_TYPE' => '', 8 | ); 9 | -------------------------------------------------------------------------------- /Solar/Test/Suite/pre-test.php: -------------------------------------------------------------------------------- 1 | getInfo(); 13 | exit((int) $info['exit']); 14 | } else { 15 | // this was an unknown kind of exception 16 | exit(Solar_Test::EXIT_TERM); 17 | } 18 | } 19 | // construction succeeded 20 | exit(Solar_Test::EXIT_PASS); -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeUpload.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Number.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Nodes/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Id', 3 | 'LABEL_CREATED' => 'Created', 4 | 'LABEL_UPDATED' => 'Updated', 5 | 'LABEL_AREA_ID' => 'Area Id', 6 | 'LABEL_USER_ID' => 'User Id', 7 | 'LABEL_NODE_ID' => 'Node Id', 8 | 'LABEL_INHERIT' => 'Inherit', 9 | 'LABEL_SUBJ' => 'Subj', 10 | 'LABEL_BODY' => 'Body', 11 | 'DESCR_ID' => '', 12 | 'DESCR_CREATED' => '', 13 | 'DESCR_UPDATED' => '', 14 | 'DESCR_AREA_ID' => '', 15 | 'DESCR_USER_ID' => '', 16 | 'DESCR_NODE_ID' => '', 17 | 'DESCR_INHERIT' => '', 18 | 'DESCR_SUBJ' => '', 19 | 'DESCR_BODY' => '', 20 | ); -------------------------------------------------------------------------------- /Solar/Cli/MakeTests/Data/classConcrete.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Concrete class test. 4 | * 5 | */ 6 | class Test_{:class} extends {:extends} { 7 | 8 | /** 9 | * 10 | * Default configuration values. 11 | * 12 | * @var array 13 | * 14 | */ 15 | protected $_Test_{:class} = array( 16 | ); 17 | 18 | /** 19 | * 20 | * Test -- Constructor. 21 | * 22 | */ 23 | public function test__construct() 24 | { 25 | $actual = Solar::factory('{:class}'); 26 | $expect = '{:class}'; 27 | $this->assertInstance($actual, $expect); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Solar/Controller/Page/View/error.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | 18 | $this->head()->setTitle($this->getTextRaw('HEADING_APP_ERROR')); 19 | ?> 20 |

getText('HEADING_APP_ERROR'); ?>

21 | 22 |

getText('TEXT_APP_ERROR'); ?>

23 | 24 | template('_errors'); ?> 25 | -------------------------------------------------------------------------------- /Solar/Controller/Page/View/notFound.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | 18 | $this->head()->setTitle($this->getTextRaw('HEADING_NOT_FOUND')); 19 | ?> 20 |

getText('HEADING_NOT_FOUND'); ?>

21 | 22 |

getText('TEXT_NOT_FOUND'); ?>

23 | 24 | template('_errors'); ?> 25 | -------------------------------------------------------------------------------- /Solar/Cli/MakeTests/Data/classAbstract.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Abstract class test. 4 | * 5 | */ 6 | abstract class Test_{:class} extends {:extends} { 7 | 8 | /** 9 | * 10 | * Default configuration values. 11 | * 12 | * @var array 13 | * 14 | */ 15 | protected $_Test_{:class} = array( 16 | ); 17 | 18 | /** 19 | * 20 | * Test -- Constructor. 21 | * 22 | */ 23 | public function test__construct() 24 | { 25 | $actual = Solar::factory('{:class}'); 26 | $expect = '{:class}'; 27 | $this->assertInstance($actual, $expect); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Bread_Locale_en-US.txt: -------------------------------------------------------------------------------- 1 | {:php} return array( 2 | 'ERR_NO_SUCH_ITEM' => 'That item does not exist.', 3 | 'ERR_NO_ID_SPECIFIED' => 'No ID was specified', 4 | 'ERR_SEARCH_NOT_ENABLED' => 'Search is not enabled at this time.', 5 | 'ERR_NO_RECORDS' => 'No records found.', 6 | 'HEADING_BROWSE' => 'Browse Records', 7 | 'HEADING_READ' => 'View Record', 8 | 'HEADING_EDIT' => 'Edit Record', 9 | 'HEADING_ADD' => 'Add New Record', 10 | 'HEADING_DELETE' => 'Delete Record?', 11 | 'HEADING_SEARCH' => 'Search', 12 | ); 13 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Pages.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Pages extends Mock_Solar_Model_Nodes 18 | { 19 | /** 20 | * 21 | * Model-specific setup. 22 | * 23 | * @return void 24 | * 25 | */ 26 | protected function _setup() 27 | { 28 | // chain to parent 29 | parent::_setup(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/ValidateNotInList.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Solar/Smtp/Adapter/NoAuth.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp_Adapter_NoAuth extends Solar_Smtp_Adapter 18 | { 19 | /** 20 | * 21 | * Authentication is never attempted, and always fails. 22 | * 23 | * @return bool 24 | * 25 | */ 26 | public function auth() 27 | { 28 | return $this->_auth; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /info/maintainers: -------------------------------------------------------------------------------- 1 | lead,pmjones,Paul M. Jones,pmjones@solarphp.com 2 | developer,anttih,Antti Holvikari,anttih@gmail.com 3 | developer,procata,Jeff Moore,jeff@procata.com 4 | contributor,clay,Clay Loveless,clay@killersoft.com 5 | contributor,enygma,Chris Cornutt,enygma@phpdeveloper.org 6 | contributor,jelaurent,Jean-Eric Laurent,jel@jelaurent.com 7 | contributor,jsurgeson,Jeff Surgeson,solar@3hex.com 8 | contributor,kalkin,Bahtiar Gadimov,bahtiar@gadimov.de 9 | contributor,kilbrj,James Kilbride,james.kilbride@gd-ais.com 10 | contributor,moraes,Rodrigo Moraes,rodrigo.moraes@gmail.com 11 | contributor,weierophinney,Matthew Weier O'Phinney,mweierophinney@gmail.com 12 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/ValidateNotInKeys.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/Bookmarks.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_Bookmarks extends Mock_Solar_Model_Nodes 18 | { 19 | /** 20 | * 21 | * Model-specific setup. 22 | * 23 | * @return void 24 | * 25 | */ 26 | protected function _setup() 27 | { 28 | // chain to parent 29 | parent::_setup(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/Test/Solar/Sql/Model/Related/ToOne.php: -------------------------------------------------------------------------------- 1 | skip('abstract class'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Info/options.php: -------------------------------------------------------------------------------- 1 | array( 4 | 'descr' => 'The source directory, typically the PEAR directory.', 5 | 'param' => 'optional', 6 | ), 7 | 'class_dir' => array( 8 | 'descr' => 'Write class wiki files to this directory.', 9 | 'param' => 'required', 10 | ), 11 | 'package_dir' => array( 12 | 'descr' => 'Write package wiki files to this directory.', 13 | 'param' => 'required', 14 | ), 15 | 'docbook_dir' => array( 16 | 'descr' => 'Write DocBook files to this directory.', 17 | 'param' => 'required', 18 | ), 19 | ); 20 | -------------------------------------------------------------------------------- /tests/Test/Solar/Role/Adapter/File.php: -------------------------------------------------------------------------------- 1 | null, 18 | ); 19 | 20 | protected function _preConfig() 21 | { 22 | $dir = Solar_Class::dir('Mock_Solar_Role_Adapter_File'); 23 | $file = $dir . 'roles.txt'; 24 | $this->_Test_Solar_Role_Adapter_File['file'] = $file; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/Test/Solar/Sql/Model/Related/ToMany.php: -------------------------------------------------------------------------------- 1 | skip('abstract class'); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Solar/Controller/Page/View/exception.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | $this->head()->setTitle($this->getTextRaw('HEADING_SERVER_ERROR')); 18 | ?> 19 |

getText('HEADING_SERVER_ERROR'); ?>

20 | 21 |

getText('TEXT_SERVER_ERROR'); ?>

22 | 23 |

getText('TEXT_THANKS_PATIENCE'); ?>

24 | 25 | template('_errors'); ?> 26 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/ValidateUpload.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Solar/Cli/MakeTests/Data/classAdapterConcrete.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Concrete adapter class test. 4 | * 5 | */ 6 | class Test_{:class} extends {:extends} { 7 | 8 | /** 9 | * 10 | * Default configuration values. 11 | * 12 | * @var array 13 | * 14 | */ 15 | protected $_Test_{:class} = array( 16 | ); 17 | 18 | /** 19 | * 20 | * Constructor; sets the test as 'todo' until you provide adapter-specific 21 | * configuration values. Delete the constructor method after you do so. 22 | * 23 | */ 24 | public function __construct($config = null) 25 | { 26 | $this->todo('need adapter-specific config'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocbook/Data/apidoc.txt: -------------------------------------------------------------------------------- 1 | 2 | %xinclude; 7 | ] 8 | > 9 | 16 | 17 | 18 | {:vendor} Package and Class Documentation 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeString.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeString($before); 28 | $this->assertSame($after, '12345'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tests/Test/Solar/Cache/Adapter/Memcache.php: -------------------------------------------------------------------------------- 1 | _adapter->deleteAll(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeWord.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeWord($before); 28 | $this->assertSame($after, 'abc_123'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Bread_View_read.txt: -------------------------------------------------------------------------------- 1 |

escape(ucwords($this->controller)); ?>

2 |

getText('HEADING_READ'); ?>

3 | 4 |

[ action("/{$this->controller}", 'ACTION_BROWSE');?> ]

5 | 6 | partial('_item', $this->item); ?> 7 | 8 | user->access->isAllowed( 10 | $this->controller_class, 11 | 'edit', 12 | $this->item 13 | ); 14 | 15 | if ($allowed) { 16 | $action = $this->action( 17 | "/{$this->controller}/edit/{$this->item->getPrimaryVal()}", 18 | 'ACTION_EDIT' 19 | ); 20 | echo "

$action

"; 21 | } 22 | ?> 23 | -------------------------------------------------------------------------------- /Solar/Controller/Command/Info/options.php: -------------------------------------------------------------------------------- 1 | array( 3 | 'long' => 'config', 4 | 'param' => 'required', 5 | 'descr' => 'Use this configuration file.', 6 | ), 7 | 'include_path' => array( 8 | 'long' => 'include-path', 9 | 'short' => null, 10 | 'descr' => 'Use this include-path instead of the default.', 11 | ), 12 | 'verbose' => array( 13 | 'long' => 'verbose', 14 | 'short' => 'v', 15 | 'descr' => 'Display verbose output when available.', 16 | ), 17 | 'version' => array( 18 | 'long' => 'version', 19 | 'short' => 'V', 20 | 'descr' => 'Display version information and exit.', 21 | ), 22 | ); 23 | -------------------------------------------------------------------------------- /Solar/Auth/Locale/pt_BR.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'VALID' => 'Bem vindo!', 19 | 'ANON' => 'Você não está logado.', 20 | 'LOGOUT' => 'Obrigado pela sua visita.', 21 | 'WRONG' => 'Usuário e senha incorretos. Tente novamente.', 22 | 'EXPIRED' => 'A sessão expirou. Por favor logue-se novamente.', 23 | 'IDLED' => 'A sessão está inativa há muito tempo. Por favor logue-se novamente.' 24 | ); 25 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Bread_View_search.txt: -------------------------------------------------------------------------------- 1 |

escape(ucwords($this->controller)); ?>

2 |

getText('HEADING_SEARCH'); ?>

3 | 4 | form() 7 | ->auto($this->form) 8 | ->addProcess('search') 9 | ->decorateAsPlain() 10 | ->fetch(); 11 | 12 | // show the results list 13 | if (! $this->list) { 14 | echo $this->getText('ERR_NO_RECORDS'); 15 | } else { 16 | $pager = $this->pager($this->list->getPagerInfo()); 17 | echo $pager . "
"; 18 | echo $this->partial('_list', $this->list); 19 | echo $pager . "
"; 20 | } 21 | ?> 22 | -------------------------------------------------------------------------------- /Solar/Role.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Role extends Solar_Factory 18 | { 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The adapter class to use. 24 | * 25 | * @var array 26 | * 27 | */ 28 | protected $_Solar_Role = array( 29 | 'adapter' => 'Solar_Role_Adapter_None', 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /tests/Test/Solar/Role/Adapter/Ldap.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Log/Adapter/Firephp.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Smtp/Adapter/NoAuth.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Solar/Mail/Transport/Adapter/None.php: -------------------------------------------------------------------------------- 1 | 14 | * 15 | * @license http://opensource.org/licenses/bsd-license.php BSD 16 | * 17 | * @version $Id$ 18 | * 19 | */ 20 | class Solar_Mail_Transport_Adapter_None extends Solar_Mail_Transport_Adapter 21 | { 22 | /** 23 | * 24 | * Does nothing. 25 | * 26 | * @return bool Always true. 27 | * 28 | */ 29 | protected function _send() 30 | { 31 | return true; 32 | } 33 | } -------------------------------------------------------------------------------- /Solar/Smtp.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Smtp extends Solar_Factory 18 | { 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The class to factory, for example 'Solar_Smtp_Adapter_NoAuth'. 24 | * 25 | * @var array 26 | * 27 | */ 28 | protected $_Solar_Smtp = array( 29 | 'adapter' => 'Solar_Smtp_Adapter_NoAuth', 30 | ); 31 | } -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Login/Adapter/Get.php: -------------------------------------------------------------------------------- 1 | _request->get['handle'] = 'pmjones'; 22 | $this->_request->get['passwd'] = 'jones'; 23 | $this->_request->get['redirect'] = 'http://example.com'; 24 | $this->_request->get['process'] = $this->_adapter->locale('PROCESS_LOGIN'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Solar/Cache.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Cache extends Solar_Factory 18 | { 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The adapter class for the factory, default 24 | * 'Solar_Cache_Adapter_File'. 25 | * 26 | * @var array 27 | * 28 | */ 29 | protected $_Solar_Cache = array( 30 | 'adapter' => 'Solar_Cache_Adapter_File', 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Login/Adapter/Post.php: -------------------------------------------------------------------------------- 1 | _request->post['handle'] = 'pmjones'; 22 | $this->_request->post['passwd'] = 'jones'; 23 | $this->_request->post['redirect'] = 'http://example.com'; 24 | $this->_request->post['process'] = $this->_adapter->locale('PROCESS_LOGIN'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/Test/Solar/Smtp/Adapter/LoginAuth.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Smtp/Adapter/PlainAuth.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeStrReplace.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeStrReplace($before, ' ', '@'); 28 | $this->assertSame($after, 'abc@123@,./'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tests/Test/Solar/Smtp/Adapter/CramMd5Auth.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Login/Adapter/Multi.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Login/Adapter/None.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Logout/Adapter/Multi.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Storage/Adapter/Ldap.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Storage/Adapter/Mail.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Storage/Adapter/Post.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeIsoDate.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeIsoDate($before); 28 | $this->assertSame($after, '1979-11-07'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeIsoTime.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeIsoTime($before); 28 | $this->assertSame($after, '12:34:00'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Login/Adapter/Facebook.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Login/Adapter/Typekey.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Storage/Adapter/Multi.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizePregReplace.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizePregReplace($before, '/[^a-z]/', '@'); 28 | $this->assertSame($after, 'abc@@@@@@@@'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Solar/Mail/Transport.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Mail_Transport extends Solar_Factory 18 | { 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The class to factory. Default is 24 | * 'Solar_Mail_Transport_Adapter_Phpmail'. 25 | * 26 | * @var array 27 | * 28 | */ 29 | protected $_Solar_Mail_Transport = array( 30 | 'adapter' => 'Solar_Mail_Transport_Adapter_Phpmail', 31 | ); 32 | } -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Logout/Adapter/Facebook.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Mail/Transport/Adapter/Echo.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Mail/Transport/Adapter/File.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Mail/Transport/Adapter/None.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Mail/Transport/Adapter/Smtp.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Session/Handler/Adapter/Sql.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Solar/Auth/Login.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id: Adapter.php 4533 2010-04-23 16:35:15Z pmjones $ 15 | * 16 | */ 17 | class Solar_Auth_Login extends Solar_Factory { 18 | 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The adapter class, for example 'Solar_Access_Adapter_Open'. 24 | * 25 | * @var array 26 | * 27 | */ 28 | protected $_Solar_Auth_Login = array( 29 | 'adapter' => 'Solar_Auth_Login_Adapter_Post', 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Bread_View_edit.txt: -------------------------------------------------------------------------------- 1 |

escape(ucwords($this->controller)); ?>

2 |

getText('HEADING_EDIT'); ?>

3 | 4 |

[ action( 5 | "/{$this->controller}/read/{$this->item->getPrimaryVal()}", 6 | 'ACTION_READ'); 7 | ?> ]

8 | 9 | user->access->isAllowed( 13 | $this->controller_class, 14 | 'delete', 15 | $this->item 16 | ); 17 | 18 | if ($allowed) { 19 | $process_group[] = 'delete'; 20 | } 21 | 22 | echo $this->form() 23 | ->auto($this->form) 24 | ->addProcessGroup($process_group) 25 | ->fetch(); 26 | ?> 27 | -------------------------------------------------------------------------------- /tests/Test/Solar/Access/Adapter/File.php: -------------------------------------------------------------------------------- 1 | _Test_Solar_Access_Adapter_File['file'] = $file; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Storage/Adapter/External.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeAlpha.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeAlpha($before); 28 | 29 | $this->assertNotSame($before, $after); 30 | $this->assertSame($after, 'abc'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Pager.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Solar/Auth/Locale/fr_FR.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'VALID' => '', 19 | 'ANON' => '', 20 | 'LOGOUT' => 'Merci pour votre visite.', 21 | 'WRONG' => 'Votre identifiant et votre mot de passe ne corresmondent pas. Merci de recommencer.', 22 | 'EXPIRED' => 'Votre session a expiré. Merci de vous reconnecter.', 23 | 'IDLED' => 'Votre session a été inutilisée pendant trop longtemps. Merci de vous reconnecter.' 24 | ); 25 | -------------------------------------------------------------------------------- /Solar/Auth/Logout.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id: Adapter.php 4533 2010-04-23 16:35:15Z pmjones $ 15 | * 16 | */ 17 | class Solar_Auth_Logout extends Solar_Factory { 18 | 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The adapter class, for example 'Solar_Access_Adapter_Open'. 24 | * 25 | * @var array 26 | * 27 | */ 28 | protected $_Solar_Auth_Logout = array( 29 | 'adapter' => 'Solar_Auth_Logout_Adapter_Post', 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /Solar/Role/Adapter/None.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Role_Adapter_None extends Solar_Role_Adapter 18 | { 19 | /** 20 | * 21 | * Fetch the roles. 22 | * 23 | * @param string $handle User handle to get roles for. 24 | * 25 | * @return array An array of discovered roles. 26 | * 27 | */ 28 | public function fetch($handle) 29 | { 30 | return array(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Solar/Session/Handler.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Session_Handler extends Solar_Factory 18 | { 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The class to factory, for example 24 | * 'Solar_Session_Handler_Adapter_Native'. 25 | * 26 | * @var array 27 | * 28 | */ 29 | protected $_Solar_Session_Handler = array( 30 | 'adapter' => 'Solar_Session_Handler_Adapter_Native', 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Login/Adapter/HttpBasic.php: -------------------------------------------------------------------------------- 1 | _request->server['PHP_AUTH_USER'] = 'pmjones'; 22 | $this->_request->server['PHP_AUTH_PW'] = 'jones'; 23 | } 24 | 25 | public function testGetLoginRedirect() 26 | { 27 | $this->skip('redirects not supported directly with http-basic auth'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeAlnum.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeAlnum($before); 28 | 29 | $this->assertNotSame($before, $after); 30 | $this->assertSame($after, 'abc123'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tests/Test/Solar/Mail/Transport/Adapter/Phpmail.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/Test/Solar/Session/Handler/Adapter/Native.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Solar/Auth/Storage.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id: Adapter.php 4533 2010-04-23 16:35:15Z pmjones $ 15 | * 16 | */ 17 | class Solar_Auth_Storage extends Solar_Factory { 18 | 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The adapter class, for example 'Solar_Access_Adapter_Open'. 24 | * 25 | * @var array 26 | * 27 | */ 28 | protected $_Solar_Auth_Storage = array( 29 | 'adapter' => 'Solar_Auth_Storage_Adapter_Var', 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /Solar/View/Helper/Link.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_View_Helper_Link extends Solar_View_Helper 18 | { 19 | /** 20 | * 21 | * Returns a tag. 22 | * 23 | * @param string $attribs The specification array, typically 24 | * with keys 'rel' and 'href'. 25 | * 26 | * @return string The tag. 27 | * 28 | */ 29 | public function link($attribs) 30 | { 31 | return '_view->attribs($attribs) . ' />'; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tests/Test/Solar/User.php: -------------------------------------------------------------------------------- 1 | assertInstance($obj, 'Solar_User'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Solar/Sql.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @license http://opensource.org/licenses/bsd-license.php BSD 14 | * 15 | * @version $Id$ 16 | * 17 | */ 18 | class Solar_Sql extends Solar_Factory 19 | { 20 | /** 21 | * 22 | * Default configuration values. 23 | * 24 | * @config string adapter The class to factory, for example 'Solar_Sql_Adapter_Mysql'. 25 | * 26 | * @var array 27 | * 28 | */ 29 | protected $_Solar_Sql = array( 30 | 'adapter' => 'Solar_Sql_Adapter_Sqlite', 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/FormImage.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Nl2p.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Solar/Access.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @license http://opensource.org/licenses/bsd-license.php BSD 14 | * 15 | * @version $Id$ 16 | * 17 | */ 18 | class Solar_Access extends Solar_Factory 19 | { 20 | /** 21 | * 22 | * Default configuration values. 23 | * 24 | * @config string adapter The adapter class, for example 'Solar_Access_Adapter_Open'. 25 | * 26 | * @var array 27 | * 28 | */ 29 | protected $_Solar_Access = array( 30 | 'adapter' => 'Solar_Access_Adapter_Open', 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /Solar/Cli/MakeVendor/Data/Controller_Bread_View_browse.txt: -------------------------------------------------------------------------------- 1 |

escape(ucwords($this->controller)); ?>

2 |

getText('HEADING_BROWSE'); ?>

3 | 4 | list) { 6 | echo $this->getText('ERR_NO_RECORDS'); 7 | } else { 8 | $pager = $this->pager($this->list->getPagerInfo()); 9 | echo $pager . "
"; 10 | 11 | echo $this->partial('_list', $this->list); 12 | 13 | echo $pager . "
"; 14 | } 15 | ?> 16 | 17 | user->access->isAllowed( 19 | $this->controller_class, 20 | 'add' 21 | ); 22 | 23 | if ($allowed) { 24 | $action = $this->action("/{$this->controller}/add", 'ACTION_ADD'); 25 | echo "

$action

"; 26 | } 27 | ?> 28 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Storage/Adapter/Htpasswd.php: -------------------------------------------------------------------------------- 1 | 'pmjones', 21 | ); 22 | 23 | protected function _preConfig() 24 | { 25 | parent::_preConfig(); 26 | $dir = Solar_Class::dir('Mock_Solar_Auth_Adapter_Htpasswd'); 27 | $file = $dir . 'users.htpasswd'; 28 | $this->_Test_Solar_Auth_Storage_Adapter_Htpasswd['file'] = $file; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/FormInvalid.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 27 | } 28 | 29 | /** 30 | * 31 | * Test -- Sets the indent level. 32 | * 33 | */ 34 | public function testSetIndent() 35 | { 36 | $this->todo('stub'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/FormTimestamp.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Solar/Auth/Storage/Adapter.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id: Adapter.php 4533 2010-04-23 16:35:15Z pmjones $ 15 | * 16 | */ 17 | abstract class Solar_Auth_Storage_Adapter extends Solar_Base { 18 | 19 | /** 20 | * 21 | * Verifies set of credentials. 22 | * 23 | * @param array $credentials A list of credentials to verify 24 | * 25 | * @return mixed An array of verified user information, or boolean false 26 | * if verification failed. 27 | * 28 | */ 29 | abstract public function validateCredentials($credentials); 30 | 31 | } -------------------------------------------------------------------------------- /Solar/Session/Manager.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id: Handler.php 3850 2009-06-24 20:18:27Z pmjones $ 15 | * 16 | */ 17 | class Solar_Session_Manager extends Solar_Factory 18 | { 19 | /** 20 | * 21 | * Default configuration values. 22 | * 23 | * @config string adapter The class to factory, for example 24 | * 'Solar_Session_Manager_Adapter_Native'. 25 | * 26 | * @var array 27 | * 28 | */ 29 | protected $_Solar_Session_Manager = array( 30 | 'adapter' => 'Solar_Session_Manager_Adapter_Native', 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/FormXhtml.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/FormStatic.php: -------------------------------------------------------------------------------- 1 | todo('stub'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/Test/Solar/Filter/SanitizeIsoTimestamp.php: -------------------------------------------------------------------------------- 1 | _filter->sanitizeIsoTimestamp($before); 28 | $this->assertSame($after, '1979-11-07 12:34:00'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Solar/View/Helper/Meta.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @author Rodrigo Moraes 13 | * 14 | * @license http://opensource.org/licenses/bsd-license.php BSD 15 | * 16 | * @version $Id$ 17 | * 18 | */ 19 | class Solar_View_Helper_Meta extends Solar_View_Helper 20 | { 21 | /** 22 | * 23 | * Returns a tag. 24 | * 25 | * @param string $attribs The specification array, typically 26 | * with keys 'name' or 'http-equiv', and 'content'. 27 | * 28 | * @return string The tag. 29 | * 30 | */ 31 | public function meta($attribs) 32 | { 33 | return '_view->attribs($attribs) . ' />'; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Solar/Mail/Transport/Adapter/Echo.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Mail_Transport_Adapter_Echo extends Solar_Mail_Transport_Adapter 18 | { 19 | /** 20 | * 21 | * Prints the Solar_Mail_Message headers and content. 22 | * 23 | * @return bool True on success, false on failure. 24 | * 25 | */ 26 | protected function _send() 27 | { 28 | echo $this->_headersToString($this->_mail->fetchHeaders()); 29 | echo $this->_mail->getCrlf(); 30 | echo $this->_mail->fetchContent(); 31 | return true; 32 | } 33 | } -------------------------------------------------------------------------------- /Solar/Sql/Model/Related/HasOneOrNull.php: -------------------------------------------------------------------------------- 1 | 14 | * 15 | * @license http://opensource.org/licenses/bsd-license.php BSD 16 | * 17 | * @version $Id$ 18 | * 19 | */ 20 | class Solar_Sql_Model_Related_HasOneOrNull extends Solar_Sql_Model_Related_HasOne 21 | { 22 | /** 23 | * 24 | * Returns a null when there is no related data. 25 | * 26 | * @return null 27 | * 28 | */ 29 | public function fetchEmpty() 30 | { 31 | return null; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Solar/Cli/MakeDocs/Info/options.php: -------------------------------------------------------------------------------- 1 | array( 4 | 'descr' => 'The source directory, typically the PEAR directory.', 5 | 'param' => 'optional', 6 | ), 7 | 'class_dir' => array( 8 | 'descr' => 'Write class API docs to this directory.', 9 | 'param' => 'required', 10 | ), 11 | 'package_dir' => array( 12 | 'descr' => 'Write package docs to this directory.', 13 | 'param' => 'required', 14 | ), 15 | 'docbook_dir' => array( 16 | 'descr' => 'Convert the docs to DocBook and write them to this directory.', 17 | 'param' => 'required', 18 | ), 19 | 'lint' => array( 20 | 'descr' => 'Do not make docs, just lint the sources and report errors.', 21 | 'value' => false, 22 | 'filters' => array('validateBool', 'sanitizeBool'), 23 | ), 24 | ); 25 | -------------------------------------------------------------------------------- /Solar/Smtp/Adapter/Locale/en_US.php: -------------------------------------------------------------------------------- 1 | 'Cannot enable TLS.', 3 | 'ERR_CANNOT_OPEN_SOCKET' => 'Cannot open socket: ({:errnum}) {:errstr}', 4 | 'ERR_CANNOT_SET_TIMEOUT' => 'Cannot set timeout.', 5 | 'ERR_NO_HELO' => 'Cannot send mail before HELO.', 6 | 'ERR_NO_MAIL' => 'Cannot issue RCPT TO before MAIL.', 7 | 'ERR_NO_RCPT' => 'Cannot send data before RCPT TO.', 8 | 'ERR_NO_RESPONSE' => 'No response from "{:host}:{:port}".', 9 | 'ERR_SECURE_TYPE' => 'Secure type ":{secure}" not valid; use SSL or TLS.', 10 | 'ERR_SEND_FAILED' => 'Failed to send the message.', 11 | 'ERR_CONNECTION_TIMEOUT' => 'Connection to "{:host}:{:port}" timed out.', 12 | 'ERR_UNEXPECTED_RESPONSE' => 'Unexpected response from "{:host}:{:port}": ({:code}) {:text}', 13 | ); -------------------------------------------------------------------------------- /Solar/Auth/Locale/de_DE.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | return array( 18 | 'VALID' => 'Willkommen zurück!', 19 | 'ANON' => 'Nicht eingeloggt.', 20 | 'LOGOUT' => 'Vielen Danke für ihren Besuch.', 21 | 'WRONG' => 'Ihr Benutzername und Passwort stimmen nicht. Bitte versuchen sie es erneut.', 22 | 'REPLAY' => 'Der Bearbeitunszeitraum wurde überschritten. Bitte versuchen sie es erneut.', 23 | 'EXPIRED' => 'Ihre Sitzung ist ungültig. Bitte melden sie sich erneut an.', 24 | 'IDLED' => 'Ihre Sitzung wurde zu lange nicht genutzt. Bitte melden sie sich erneut an.' 25 | ); 26 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Title.php: -------------------------------------------------------------------------------- 1 | _view->title('foo & bar'); 33 | $expect = 'foo & bar'; 34 | $this->assertSame($actual, $expect); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Solar/View/Helper/FormXhtml.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_View_Helper_FormXhtml extends Solar_View_Helper_FormElement 18 | { 19 | /** 20 | * 21 | * A pseudo-element that inserts unmodified XHTML into the flow of a form. 22 | * 23 | * HTML is pulled from the $info['value'] value. 24 | * 25 | * @param array $info An array of element information. 26 | * 27 | * @return string The element XHTML. 28 | * 29 | */ 30 | public function formXhtml($info) 31 | { 32 | $this->_prepare($info); 33 | return $this->_value; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tests/Test/Solar/Cache/Adapter/Xcache.php: -------------------------------------------------------------------------------- 1 | todo('need adapter-specific config'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Base.php: -------------------------------------------------------------------------------- 1 | _view->base('http://example.com/'); 33 | $expect = ''; 34 | $this->assertSame($actual, $expect); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Link.php: -------------------------------------------------------------------------------- 1 | 'bar'); 33 | $actual = $this->_view->link($attribs); 34 | $expect = ''; 35 | $this->assertSame($actual, $expect); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Meta.php: -------------------------------------------------------------------------------- 1 | 'bar'); 33 | $actual = $this->_view->meta($attribs); 34 | $expect = ''; 35 | $this->assertSame($actual, $expect); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Solar/App/Hello.php: -------------------------------------------------------------------------------- 1 | 13 | * 14 | * @license http://opensource.org/licenses/bsd-license.php BSD 15 | * 16 | * @version $Id$ 17 | * 18 | */ 19 | class Solar_App_Hello extends Solar_Controller_Page 20 | { 21 | /** 22 | * 23 | * Default action. 24 | * 25 | * @var string 26 | * 27 | */ 28 | protected $_action_default = 'index'; 29 | 30 | /** 31 | * 32 | * Action with no code at all; only passes to the view, with no layout. 33 | * 34 | * @return void 35 | * 36 | */ 37 | public function actionIndex() 38 | { 39 | $this->_layout = null; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarDib.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarDib extends Solar_Sql_Model 18 | { 19 | /** 20 | * 21 | * Model setup. 22 | * 23 | * @return void 24 | * 25 | */ 26 | protected function _setup() 27 | { 28 | $dir = str_replace('_', DIRECTORY_SEPARATOR, __CLASS__) 29 | . DIRECTORY_SEPARATOR 30 | . 'Setup' 31 | . DIRECTORY_SEPARATOR; 32 | 33 | $this->_table_name = Solar_File::load($dir . 'table_name.php'); 34 | $this->_table_cols = Solar_File::load($dir . 'table_cols.php'); 35 | } 36 | } -------------------------------------------------------------------------------- /Solar/Markdown/Wiki/Escape.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Markdown_Wiki_Escape extends Solar_Markdown_Plugin 18 | { 19 | /** 20 | * 21 | * This is a span-level plugin. 22 | * 23 | * @var bool 24 | * 25 | */ 26 | protected $_is_span = true; 27 | 28 | /** 29 | * 30 | * Escapes HTML remaining in the text. 31 | * 32 | * @param string $text The source text to be parsed. 33 | * 34 | * @return string The transformed XHTML. 35 | * 36 | */ 37 | public function parse($text) 38 | { 39 | return $this->_escape($text); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tests/Test/Solar/Auth/Storage/Adapter/Ini.php: -------------------------------------------------------------------------------- 1 | 'pmjones', 21 | 'moniker' => 'Paul M. Jones', 22 | 'email' => 'pmjones@solarphp.com', 23 | 'uri' => 'http://paul-m-jones.com', 24 | ); 25 | 26 | protected function _preConfig() 27 | { 28 | parent::_preConfig(); 29 | $dir = Solar_Class::dir('Mock_Solar_Auth_Adapter_Ini'); 30 | $file = $dir . 'users.ini'; 31 | $this->_Test_Solar_Auth_Storage_Adapter_Ini['file'] = $file; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Solar/Filter/ValidateAlpha.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Filter_ValidateAlpha extends Solar_Filter_Abstract 18 | { 19 | /** 20 | * 21 | * Validates that the value is letters only (upper or lower case). 22 | * 23 | * @param mixed $value The value to validate. 24 | * 25 | * @return bool True if valid, false if not. 26 | * 27 | */ 28 | public function validateAlpha($value) 29 | { 30 | if ($this->_filter->validateBlank($value)) { 31 | return ! $this->_filter->getRequire(); 32 | } 33 | 34 | return ctype_alpha($value); 35 | } 36 | } -------------------------------------------------------------------------------- /Solar/Cli/MakeModel/Data/model.php: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Model class. 4 | * 5 | */ 6 | class {:class} extends {:extends} 7 | { 8 | /** 9 | * 10 | * Establish state of this object prior to _setup(). 11 | * 12 | * @return void 13 | * 14 | */ 15 | protected function _preSetup() 16 | { 17 | // chain to parent 18 | parent::_preSetup(); 19 | 20 | // use metadata generated from make-model 21 | $metadata = Solar::factory('{:class}_Metadata'); 22 | $this->_table_name = $metadata->table_name; 23 | $this->_table_cols = $metadata->table_cols; 24 | $this->_index_info = $metadata->index_info; 25 | } 26 | 27 | /** 28 | * 29 | * Model-specific setup. 30 | * 31 | * @return void 32 | * 33 | */ 34 | protected function _setup() 35 | { 36 | // chain to parent 37 | parent::_setup(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Solar/Filter/ValidateNumeric.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Filter_ValidateNumeric extends Solar_Filter_Abstract 18 | { 19 | /** 20 | * 21 | * Validates that the value is numeric (any number or number string). 22 | * 23 | * @param mixed $value The value to validate. 24 | * 25 | * @return bool True if valid, false if not. 26 | * 27 | */ 28 | public function validateNumeric($value) 29 | { 30 | if ($this->_filter->validateBlank($value)) { 31 | return ! $this->_filter->getRequire(); 32 | } 33 | 34 | return is_numeric($value); 35 | } 36 | } -------------------------------------------------------------------------------- /Solar/View/Helper/Title.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_View_Helper_Title extends Solar_View_Helper 18 | { 19 | /** 20 | * 21 | * Returns a tag. 22 | * 23 | * @param string $text The title string. 24 | * 25 | * @param bool $raw When true, output the title without escaping; default 26 | * false. 27 | * 28 | * @return string The <title ... /> tag. 29 | * 30 | */ 31 | public function title($text, $raw = false) 32 | { 33 | if (! $raw) { 34 | $text = $this->_view->escape($text); 35 | } 36 | 37 | return "<title>{$text}"; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tests/Mock/Solar/Model/TestSolarSqlDescribe.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Mock_Solar_Model_TestSolarSqlDescribe extends Solar_Sql_Model 18 | { 19 | /** 20 | * 21 | * Model setup. 22 | * 23 | * @return void 24 | * 25 | */ 26 | protected function _setup() 27 | { 28 | $dir = str_replace('_', DIRECTORY_SEPARATOR, __CLASS__) 29 | . DIRECTORY_SEPARATOR 30 | . 'Setup' 31 | . DIRECTORY_SEPARATOR; 32 | 33 | $this->_table_name = Solar_File::load($dir . 'table_name.php'); 34 | $this->_table_cols = Solar_File::load($dir . 'table_cols.php'); 35 | } 36 | } -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Script.php: -------------------------------------------------------------------------------- 1 | tag. 28 | * 29 | */ 30 | public function testScript() 31 | { 32 | $actual = $this->_view->script('clientside.js'); 33 | $expect = ''; 34 | $this->assertSame($actual, $expect); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Solar/Filter/ValidateLocaleCode.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Filter_ValidateLocaleCode extends Solar_Filter_Abstract 18 | { 19 | /** 20 | * 21 | * Validates that the value is a locale code. 22 | * 23 | * The format is two lower-case letters, an underscore, and two upper-case 24 | * letters. 25 | * 26 | * @param mixed $value The value to validate. 27 | * 28 | * @return bool True if valid, false if not. 29 | * 30 | */ 31 | public function validateLocaleCode($value) 32 | { 33 | $expr = '/^[a-z]{2}_[A-Z]{2}$/D'; 34 | return $this->_filter->validatePregMatch($value, $expr); 35 | } 36 | } -------------------------------------------------------------------------------- /tests/Test/Solar/View/Helper/Image.php: -------------------------------------------------------------------------------- 1 | _view->image($src); 34 | $expect = 'example.gif'; 35 | $this->assertSame($actual, $expect); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Solar/View/Helper/MetaName.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_View_Helper_MetaName extends Solar_View_Helper 18 | { 19 | /** 20 | * 21 | * Returns a tag. 22 | * 23 | * @param string $name The name value. 24 | * 25 | * @param string $content The content value. 26 | * 27 | * @return string The tag. 28 | * 29 | */ 30 | public function metaName($name, $content) 31 | { 32 | $spec = array( 33 | 'name' => $name, 34 | 'content' => $content, 35 | ); 36 | return '_view->attribs($spec) . ' />'; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Solar/Filter/ValidateAlnum.php: -------------------------------------------------------------------------------- 1 | 11 | * 12 | * @license http://opensource.org/licenses/bsd-license.php BSD 13 | * 14 | * @version $Id$ 15 | * 16 | */ 17 | class Solar_Filter_ValidateAlnum extends Solar_Filter_Abstract 18 | { 19 | /** 20 | * 21 | * Validates that the value is only letters (upper or lower case) and digits. 22 | * 23 | * @param mixed $value The value to validate. 24 | * 25 | * @return bool True if valid, false if not. 26 | * 27 | */ 28 | public function validateAlnum($value) 29 | { 30 | if ($this->_filter->validateBlank($value)) { 31 | return ! $this->_filter->getRequire(); 32 | } 33 | 34 | return ctype_alnum((string)$value); 35 | } 36 | } --------------------------------------------------------------------------------