Created by emiliodeg, last update on 07/07/2008 15:15
Cookie Class
very easy to use
set cookie: Cookie::set('car','abc 123');
get cookie: Cookie::get('car'); //return 'abc 123'
del cookie: Cookie::del('car'); //delete cookie car
del all cookies: Cookie::delAll();
isset cookie??: Cookie::exists('car'); //return bool value
empty cookie??: Cookie::isEmpty('car'); //return bool value
class Cookie{
publicstatic function set($cookieName,$value='',$time=3600,$path=null,$domain=null,$httpOnly =false){
Actions make PHPEdit extremely customizable. You can create actions that are calling PHPEdit commands. You ever think of when you want to save a file and have code beautifier cycle through it, upload it through FTP or commit it to subversion/svn?
Actions make this possible. If you are finding yourself doing operations consistently that could be automated in some aspect Actions are for you.
To get started, you need to know a little about the PHPEdit commands. Navigate to Tools -> Script Command Editor. Here you can right click and create a custom script that later you can add as an action.
My script looks like this:
CodeBeautifierExecute
FileSave
FTPPublishActiveDocumen t
What this does is allow me to execute code beautifier, save the file and bring up the dialog to publish to FTP.
The next step is to go to Tools -> Edit Preferences. Navigate to Graphical user interface -> Actions. Click New Action. Add your script into the Script section. Give it a caption and category. Then bind it to a shortcut (I gave this one Ctrl + Alt + P). You can also give it certain Contexts to run in by setting specific types of documents to run on, etc.
I hope this quick tip gave you ideas for creating your own actions that produce more efficient productivity!