Sexta-feira, 27 de Fevereiro de 2009
Lista de classes utilitárias da LibSAPO.js
SAPO.Utility.
-
Array - Sample
- (bool) inArray(<string>, <array>)
- (bool|int|array) keyValue(<string>, <array>)
-
Cookie - Sample
- (object) get()
- (void) set(<string>, <string>, <int>, <string>, <string> <bool>)
- (void) remove(<string>)
-
Crypto - Sample
- (string) md5(<string>)
- (string) sha1(<string>)
- (string) sha256(<string>)
-
CSS - Sample
-
Dumper - Sample
- (void) printDump(<object>, <string>)
- (string) returnDump(<object>)
- (void) alertDump(<object>)
- (void) windowDump(<object>)
-
Pagination - Sample
- (object) new SAPO.Utility.Pagination()
-
String - Sample
- (string) ucFirst(<string>)
- (string) trim(<string>)
- (string) stripTags(<string>)
- (string) htmlEntitiesEncode(<string>)
- (string) htmlEntitiesDecode(<string>)
- (string) utf8Encode(<string>)
- (string) utf8Decode(<string>)
- (string) shortString(<string>, <int>)
- (string) removeAccentedChars(<string>)
-
Templating - Sample
- (void) (new SAPO.Utility.Templating()).gen(<string|element>, <object>)
-
Url - Sample
- (string) getUrl()
- (object) getQueryString(<opt string>)
- (string) getAnchor(<opt string>)
- (object) getAnchorString(<opt string>)
- (object) parseUrl(<string>)
- (object) currentScriptElement()
- (string) base64Encode(<string>)
- (string) base64Decode(<string>)
-
Validator - Sample
- (bool) mail(<string>)
- (bool) url(<string>)
- (bool) isPortuguesePhone(<string>)
- (bool) isCVPhone(<string>)
- (bool) isAOPhone(<string>)
- (bool) isMZPhone(<string>)
-
Variable - Sample
- (bool) isArray(<var>)
- (bool) isObject(<var>)
- (bool) isBoolean(<var>)
- (bool) isNumber(<var>)
- (bool) isString(<var>)
- (bool) isNull(<var>)
Os que o Sample der 404 é porque não existe ;)
sinto-me:
música: Primordial - Empire Falls