Skip to content

Javascript and php ActiveRecord with Oauth2 to google implementation

Notifications You must be signed in to change notification settings

rhildred/ActiveRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveRecord

Javascript and php ActiveRecord with Oauth2 to google implementation

		var Person = ActiveRecord.extend({constructor: function(){}, name: 'person'});		
		var oPerson = new Person();
//C(reate)
		oPerson.lname = 'Hildred';
		oPerson.fname = 'Rich';
		oPerson.save(fcomplete); //fcomplete is a function to be called when the save is complete
		
//R(ead)
		oPerson.find('lname = ?', ['Hildred'], fcomplete); // finds all occurences of People with lname = 'Hildred' and calls fcomplete when done
		oPerson.load('lname = ?', ['Hildred'], fcomplete); // finds one occurence of Person with lname = 'Hildred' and calls fcomplete when done

//U(pdate)
		oPerson.fname = 'Richard';
		oPerson.save(fcomplete); //fcomplete is a function to be called when the save is complete
		
//D(elete)
		oPerson.delete(fcomplete); //fcomplete is a function to be called when the delete is complete

See Also docs/ActiveRecord.pdf

About

Javascript and php ActiveRecord with Oauth2 to google implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published