This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//You can use any package name here. | |
//It's not required to match the namespace of php file. | |
package; | |
import php.NativeStructArray; | |
typedef EncodingOptions = { | |
?prettyPrint:Bool, | |
?enableJsonExprFinder:Bool, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@:native('\\phpmailerNamespace\\PHPMailer') | |
extern class PHPMailerNative | |
{ | |
public function addAttachment( path : String, name : String = "", encoding : String = "base64", type : String = "", disposition : String = "attachment" ) : Bool | |
} | |
class PHPMailer extends PHPMailerNative | |
{ | |
override public function addAttachment( path : String, name : String = "", encoding : String = "base64", type : String = "", disposition : String = "attachment" ) : Bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example; | |
import php7.Exception; | |
class TestSuper { | |
function new () {} | |
function superMethod () return [Std.random(2), Std.random(2)][Std.random(2)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class KeyValueIterator<K,V> { | |
var map:Map<K,V>; | |
var keys:Iterator<K>; | |
static public inline function pairs<K,V>(map:Map<K,V>) return new KeyValueIterator(map); | |
public inline function new(map:Map<K,V>) { | |
this.map = map; | |
this.keys = map.keys(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import flash.Lib; | |
import ru.stablex.ui.skins.Paint; | |
import ru.stablex.ui.UIBuilder; | |
import ru.stablex.ui.widgets.Slider; | |
/** | |
* Simple demo project for StablexUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fst.exception; | |
import haxe.CallStack; | |
/** | |
* Exceptions base | |
* | |
*/ | |
class Exception { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ; | |
/** | |
* Base class | |
* | |
*/ | |
class Base{ | |
}//class Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import flash.display.Shape; | |
import flash.display.Sprite; | |
import flash.Lib; | |
import motion.Actuate; | |
class Main extends Test<Shape>{ | |
/** this setter is not called on tweening */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pony.flash; | |
import haxe.macro.Expr; | |
import pony.events.Signal; | |
#if !macro | |
import flash.external.ExternalInterface; | |
#end | |
/** | |
* ... | |
* @author AxGord | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import haxe.macro.Context; | |
import haxe.macro.Type; | |
class Builder{ | |
macro static public function getSpriteClass () : Type { | |
var cls : String = ( | |
Context.defined("custom_base") | |
? Context.definedValue("custom_base") | |
: "flash.display.Sprite" //by default use this class |
NewerOlder