Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2007, 01:05 AM
SpotSec's Avatar
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 115
Default SpotSec ZF Utility Classes

Well these are some classes that are currently in poor quality, but might be helpful in some situations. I haven't worked on these in a while because of other things, but hopefully someone can improve them and submit them back .

All files provided are now Zend 1.0 compatible and probably not compatible with any versions below.

FishEye: browsing spotsecng/ (Click hide empty dirs as you might be looking at old files)

These are links to the Fisheye hosting so just click on raw from the latest revision to get the source. Probably if there is a lot of downloads I'll package them, but that is not very likely. As for documentation there isn't much done, but you can browse the SpotSec code for examples .

SpotSec_Controller_Plugin_Auth_Http:
FishEye: history spotsecng/trunk/Framework/src/library/SpotSec/Controller/Plugin/Auth/Http.php
An http basic and digest authentication adapter for Zend_Controller.

SpotSec_Controller_Plugin_Acl & SpotSec_Controller_Plugin_Acl_Adapter_Abstract
FishEye: history spotsecng/trunk/Framework/src/library/SpotSec/Controller/Plugin/Acl.php
FishEye: history spotsecng/trunk/Framework/src/library/SpotSec/Controller/Plugin/Acl/Adapter/Abstract.php
An Acl plugin for Zend_Controller.

SpotSec_Controller_Plugin_NoRoute
FishEye: history spotsecng/trunk/Framework/src/library/SpotSec/Controller/Plugin/NoRoute.php
A no route controller plugin - Handles invalid calls to controllers and actions (similar to 404 errors)
@deprecated as of 1.0 in favor of the build in errorHandler, nevertheless useful

SpotSec_Json_Server:
FishEye: history spotsecng/trunk/Framework/src/library/SpotSec/Json/Server.php
This class follows the json-rpc 1.0 and 1.1ish mainly 1.0, but most of 1.1draft is implemented.
It throws a SpotSec_Json_Server_Exception, but the one there is linked to my error and exception handler, so you can just make your own exception class or change it.

SpotSec_Json_Smd:
FishEye: history spotsecng/trunk/Framework/src/library/SpotSec/Json/Smd.php
Generates a SMD description using php's reflection api.
This class follows The Dojo Toolkit | The JavaScript Toolkit - JSON SMD specification. Basically it is similar to generating a soap service's wsdl

SpotSec_Log_Writer_Syslog
FishEye: history spotsecng/trunk/Framework/src/library/SpotSec/Log/Writer/Syslog.php
A syslog adapter for Zend_Log

SpotSec_Controller_Plugin_ModelsIncludePath
http://fisheye3.cenqua.com/browse/sp...ncludePath.php
*EXPERIMENTAL - UNTESTED* A Zend controller plugin that automatically injects the include path to your models. Usage is similar to viewRenderer. You may have to setup the spec if you are using a different setup than the viewRenderer defaults.


There are also some file and folder handling classes, but I they are really not up to par as I need to refractor them to something like php's reflection api. Same goes with the shell exec wrapper and the Zend_Auth ini file adapter.
If you need help using these classes just post.

Last edited by SpotSec : 05-30-2007 at 12:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-24-2007, 09:34 PM
Cristian's Avatar
Administrator
 
Join Date: Feb 2007
Location: Sibiu, Romania
Posts: 99
Default

LOL, i missed this post.

Nice idea, i hope i can finish asap that code repository...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:14 PM.