|
Project Information
Featured
Downloads
Links
|
NOTE:scite-config is no longer being updated. I have moved to Geany, you should too. Why Geany?
SciTE ConfigHotkeys
Screen ShotsAU3
CSS
HTML
JS
PHP
PY
SQL
XML
InstallAutoIt Users
SciTE Users
Ubuntu UsersSee the Ubuntu branch: http://code.google.com/p/scite-config/source/browse/#svn/branches/ubuntu
Features
Checkoutsvn checkout http://scite-config.googlecode.com/svn/
FAQWhat theme is that I see in the screen shot? What's that example php code? <?php // Example
/**
* Define MyClass
*/
class MyClass{
// Declare a public constructor
public function __construct() { }
// Declare a public method
public function MyPublic() { }
// Declare a protected method
protected function MyProtected() { }
// Declare a private method
private function MyPrivate() { }
// This is public
function Foo(){
$this->MyPublic();
$this->MyProtected();
$this->MyPrivate();
}
}
$myclass=new MyClass;
$myclass->MyPublic(); // Works
$myclass->MyProtected(); // Fatal Error
$myclass->MyPrivate(); // Fatal Error
$myclass->Foo(); // Public, Protected and Private work
// Valid constant names
define("TITLE","Example");
define("TITLE","Exa $this_is_a_variable mple");
// Page header
include 'header.inc';
echo ''.
'<div>'.
'<form action="/">'.
'<div>'.
'<label for="q">'.
'Search the internets'.
(!empty($_COOKIE['name'])?
' '.htmlspecialchars($_COOKIE['name']):
''
).
'<input id="q" name="q" type="text" value="" />'.
'</label>'.
'<input type="submit" value="Go" />'.
'</div>'.
'</form>'.
'</div>'.
'';
// Javascript
include 'javascript.inc';
/**
* Lazy load function to prevent regex from being stuffed in
* cache.
*/
protected function _loadRegex() {
$oct = '(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])'; // 0-255
$this->ip4 = "(?:{$oct}\\.{$oct}\\.{$oct}\\.{$oct})"; // PHP complex variable
}
?>
|
