Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:sanitize

This is an old revision of the document!


Sanitize

Layer: Core · Source: lib/core/Sanitize.php:19 (lines 19–113)


class Sanitize

sanitize.class.php

Sanitizing input and output

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Core Class |
| ''@author'' | Khairu a.k.a wenkhairu |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |

Inheritance

No parent, interface or trait. This is a root type.

Constants (0)

None.

Properties (0)

None declared.

Methods (6)

^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''sanitasi()'' | (undocumented) | 21 |
| public | ''__construct()'' | (undocumented) | 56 |
| public | ''sanitize()'' | Sanitize string (alias for sanitasi). | 70 |
| public static | ''mildSanitizer()'' | mildSanitizer | 82 |
| public static | ''severeSanitizer()'' | severeSanitizer | 97 |
| public static | ''strictSanitizer()'' | strictSanitizer | 109 |

sanitasi()

public function sanitasi($str, $tipe)

lines 21–54 (34)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$str'' | ''(untyped)'' | //required// | //none// |
| ''$tipe'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

__construct()

public function __construct()

lines 56–58 (3)

Takes no parameters.

sanitize()

public function sanitize($str, $tipe)

lines 70–73 (4)

Sanitize string (alias for sanitasi).

This method exists for API compatibility. ConfigurationDao and other DAO classes call $sanitizer→sanitize() but this class uses sanitasi() as its primary method.

^ Parameter ^ Type ^ Default ^ Description ^
| ''$str'' | ''(untyped)'' | //required// | //none// |
| ''$tipe'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — string|int

mildSanitizer()

public static function mildSanitizer($str)

lines 82–88 (7)

mildSanitizer

^ Parameter ^ Type ^ Default ^ Description ^
| ''$str'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — string

severeSanitizer()

public static function severeSanitizer($str)

lines 97–100 (4)

severeSanitizer

^ Parameter ^ Type ^ Default ^ Description ^
| ''$str'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — string

strictSanitizer()

public static function strictSanitizer($str)

lines 109–112 (4)

strictSanitizer

^ Parameter ^ Type ^ Default ^ Description ^
| ''$str'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — string


This page is generated from source by 'tools/gendoc'. Edits will be overwritten.

scriptlog/lib/core/sanitize.1790413762.txt.gz · Last modified: by admin