This file contains hidden or 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
public function update_user() { | |
return this.send_request( '/contact/' , 'PATCH' , serializeJSON( [ arguments ] ) ); | |
} |
This file contains hidden or 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
<cfscript> | |
function myFunction(string testParameter) { | |
writeDump(arguments); | |
writeOutput('<br>'); | |
} | |
myFunction(); | |
myFunction( 1 , 2 , 'a' , 'b' ); |
This file contains hidden or 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
<cfscript> | |
function myFunction() { | |
writeDump(arguments); | |
writeOutput('<br>'); | |
} | |
myFunction(); | |
myFunction( 1 , 2 , 'a' , 'b' ); |
This file contains hidden or 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
//Person | |
component { | |
static { | |
static.instanceCount=0; | |
} | |
public function init(required String firstName, required String lastName) { | |
this.firstName=arguments.firstName; | |
this.lastName=arguments.lastName; | |
static.instanceCount++; |
This file contains hidden or 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
//Person | |
component { | |
if(isNull(static.instanceCount)) | |
static.instanceCount=1; | |
else | |
static.instanceCount++; | |
public static numeric function personInstancesCreated() { | |
return isNull(static.instanceCount))?0:static.instanceCount; | |
} |
This file contains hidden or 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
//Person | |
component { | |
public function init(required String firstName, required String lastName) { | |
this.firstName=static.cleanUp(arguments.firstName); | |
this.lastName=static.cleanUp(arguments.lastName); | |
} | |
public static function cleanUp(stringValue) { | |
return trim(arguments.stringValue); | |
} | |
} |
This file contains hidden or 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
//Person | |
component { | |
public function init(required String firstName, required String lastName) { | |
... | |
} | |
public static function createPeople() { | |
... | |
} | |
} |
This file contains hidden or 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
//Person | |
component { | |
public function init(required String firstName, required String lastName) { | |
... | |
} | |
public function createPeople() { | |
... | |
} | |
} |
This file contains hidden or 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
function createPeople() { | |
local.qry=QueryExecute("select lastName, firstName from people"); | |
local.people=[]; | |
loop query="#qry#" { | |
people[qry.currentrow] = new Person(firstName, lastName); | |
} | |
return people; | |
} |
This file contains hidden or 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
//Person | |
component { | |
public function init(required String firstName, required String lastName) { | |
this.firstName=arguments.firstName; | |
this.lastName=arguments.lastName; | |
} | |
} |
NewerOlder