archive-com.com » COM » S » SOLARPHP.COM

Total: 875

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Solar Framework for PHP 5
    We will get to the include path shortly The source directory doesn t care what kind of code or pacakges you keep there You can download and extract PEAR style packages keep downloads of third party libraries or use svn externals or git clones You could even keep multiple versions of the same libraries here so long as each gets its own subdirectory The source directory is organized like this source acme libraries from the make vendor Acme CLI call Acme php Acme config script docs tests example svn externals http svn example com trunk solar core Solar libraries Solar php Solar config script docs tests third party copied or downloaded from a third party A 6 2 The include Directory The include directory is used as the include path for your Solar system code In general the include directory contains only symlinks to the source directory This means you can have any files at all in the source directory and not pollute your include path It also means you can swap between sources at will by pointing the symlink to whatever you want The include directory is organized like this include Acme php ln s source acme Acme php Acme ln s source acme Acme Example ln s source Example Solar php ln s source solar Solar php Solar ln s source solar Solar thirdparty php ln s source third party some file php If you use make vendor these links will be created for you automatically both Windows Vista and Unix style symlinks are supported If you bring in your own sources from Solar style vendors you can use link vendor to create them for you For non Solar style vendors you will need to create the links yourself A 6 3 The config Directory Next we have

    Original URL path: http://solarphp.com/manual/appendix-standards.system (2016-02-13)
    Open archived version from archive


  • Solar Framework for PHP 5
    the system This is not because we adhere to the convention over configuration dogma Instead it is because we believe in the power of a shared vocabulary to increase understanding and to make every part of the system look and feel as much as possible like every other part of the system Prev Up Next Appendix B Naming Conventions Home B 2 Vendor and Class Names Local Navigation Home Project

    Original URL path: http://solarphp.com/manual/appendix-naming.intro (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    is Solar For example the Solar Auth Adapter Sql class is located at Solar Auth Adapter Sql php When you write your own classes you should pick a unique vendor name for them The vendor name should begin with a capital letter and be followed only by lower case letters and or numbers Do not use studly or camel cased vendor names if you do the inflection that converts vendor

    Original URL path: http://solarphp.com/manual/appendix-standards.naming.classes (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    get find retrieve cache fetch id fetchBy or fetchOneBy returns one entry from storage using alternative or additional criteria named in the method instead of fetchWith fetchFor table fetchByName name fetchAll returns multiple entries from storage table fetchAll fetchAllBy returns multiple entries from storage using alternative or additional criteria named in the method table fetchAllByName name fix modifies a config value parameter or property to conform to a standard format or structure fetch fixParams get gets the value of a property obj getProperty has or exists checks to see if a value or property exists returns boolean true or false session hasFlash insert inserts new data in storage instead of add new save table insert data is the method returns boolean true false cache isActive load loads property values from an external source role load handle sanitize forces a value to match a known format filter sanitizeFloat value save updates existing data or inserts new data in storage instead of replace cache save id data set sets the value of a property obj setProperty value update updates existing data in storage instead of save change table update data where validate checks that a value matches a known format returns boolean

    Original URL path: http://solarphp.com/manual/appendix-standards.naming.methods (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    They open up security problems when register globals is turned on They pollute the global namespace and may collide or overwrite each other in differing contexts Prev Up Next B 3 Methods Home B 5 Session Variables Local Navigation Home

    Original URL path: http://solarphp.com/manual/appendix-standards.naming.globals (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    class using a session variable called foo would be addressed as SESSION Acme Example foo The easiest way to adhere to this convention is to use a Solar Session storage object within your class For example php session Solar factory Solar Session array class Acme Example equivalent of SESSION Acme Example something session store foo bar Prev Up Next B 4 Global Variables and Functions Home B 6 Configuration Keys

    Original URL path: http://solarphp.com/manual/appendix-standards.naming.session-vars (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    Acme Example constructor configuration is addressed as an associative array in the Acme Example key of the config file php SYSTEM config php config Acme Example array Prev Up Next B 5 Session Variables Home B 7 Locale Files Local

    Original URL path: http://solarphp.com/manual/appendix-standards.naming.config-keys (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    is named en US php the pt BR file is named pt BR php and so on Locale files are placed in a subdirectory of the class the subdirectory is always named Locale For example locale files for the Acme Example class are located at Acme Example Locale Acme Example php Example Locale en US php pt BR php Prev Up Next B 6 Configuration Keys Home B 8 Locale

    Original URL path: http://solarphp.com/manual/appendix-standards.naming.locale-files (2016-02-13)
    Open archived version from archive



  •