Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged class



« Prev 1 2 3
  1. FAV

    Wordpress - Add Page Name Slug to Body classes

    Add page name slug to Wordpress body class array.
    PHP 5 views posted 5 years ago by razvanstavila
  2. FAV

    Read and write data to textfile

    I created this code for practice, and I looking for better and clear solution for the last instance where I can write or delete the data, but after I want to get back the content as array or the key as string. I want to use this write-read back with...
    PHP 12 views posted 5 years ago by gitarfogas
  3. FAV

    WordPress Tiny MC Editor mit eigenen CSS-Klassen erweitern

    Für functions.php
    PHP saved by 4 people 5 views posted 6 years ago by gabbo
  4. FAV

    Browser body class

    PHP 4 views posted 6 years ago by larscmagnusson
  5. FAV

    how to disable mx ping with emailChecker class

    how to disable mx ping with emailChecker class
    PHP 5 views posted 7 years ago by jspicher
  6. FAV

    PHP Mail Letter Class

    This is a Class that allows you create a letter with correct headers and send it to multi-emails.
    PHP 7 views posted 7 years ago by Zayac
  7. FAV

    Secure Static Session Class (Handles Arrays)

    This is a static session wrapper that handles single variables and arrays. It allows setting, resetting, and deleting session variables (without destroying the session). It regenerates the session id every time a session is started to prevent sessi...
    PHP 7 views posted 7 years ago by halk
  8. FAV

    Regex Clipboard Class (Mini-Template Engine)

    https://gist.github.com/4098493 (examples of use below the class code) This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as...
    PHP 11 views posted 7 years ago by halk
  9. FAV

    Wordpress function to upload image and set as featured image

    A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID. This function is part of the WPelements library class available on Github. Fee...
    PHP 14 views posted 7 years ago by krike
  10. FAV

    Simple PHP cache class

    A simple class to cache files (or other results) with PHP.
    PHP saved by 4 people 14 views posted 7 years ago by peckham
  11. FAV

    CSV handler class

    Class that convert arrays to csv format, downloads CSV files and saves to disk on server.
    PHP 10 views posted 7 years ago by TimoZachi
  12. FAV

    Get a list of class constants

    Gets the constants from a class using reflection.
    PHP 5 views posted 7 years ago by ryantxr
  13. FAV

    CI calendar class changes

    At line 220 you should see the the start if an if block. This is the section that needs to be edited. I added the foreach block to itterate over the data array and create links in the table cells.
    PHP 3 views posted 7 years ago by jdhall75
  14. FAV

    DataObject class

    Abstract class from which other classes can be derived to handle database access and data retrieval. Constants for database connection (DB_DSN, DB_USERNAME, etc.) must be set in another php file (eg. config.php)
    PHP saved by 2 people 14 views posted 7 years ago by osccar
  15. FAV

    PHP SPL ArrayAccess Iterator countable class

    use an object as an array
    PHP 3 views posted 7 years ago by prwhitehead
  16. FAV

    concept: php multidimentional methods

    A class i started to implement, which ended up in a working concept However I'm not sure if it's a legal way of programming since I unnessesery changes the structure of php without some real value except nicer structure For now it remain a conce...
    PHP 3 views posted 8 years ago by Knarf
  17. FAV

    Easy to implement and adjust Poll Class

    Very simple to use Web Poll Class, simply create a new instance, set the question and set the answers. You still have to set up your database yourself
    PHP saved by 1 person 4 views posted 8 years ago by RobertHegeraad
  18. FAV

    Simple class to retrieve an ID using a URL of the Youtube

    Simple class to retrieve an ID using a URL of the Youtube
    PHP 12 views posted 8 years ago by leandroperes
  19. FAV

    A very basic Model Class

    This is a sample class being used for demo purposes
    PHP 8 views posted 8 years ago by tomcottrill
  20. FAV

    My database class

    Just my simple db class i use
    PHP saved by 2 people 10 views posted 8 years ago by cdog
  21. FAV

    Class database mysql

    PHP saved by 4 people 20 views posted 8 years ago by jose_506
  22. FAV

    SessCacher: Class for caching data through php session

    This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
    PHP 10 views posted 8 years ago by TimoZachi
  23. FAV

    WordPress Custom Walker Class to get Sister Pages for Sub-Menu

    No modifications or testing carried out yet.
    PHP 4 views posted 8 years ago by Huskie
  24. FAV

    WordPress Custom Walker Class to remove unnecessary classes and ID\'s from menu items

    Could possibly be simplified to maximise efficiency. It relies on a separare WP Sleek framework function sleek_get_theme_menu_name. This could ideally be improved to allow the theme location to passed as a parameter somehow.
    PHP 4 views posted 8 years ago by Huskie
  25. FAV

    multidimensional array to multidimensional object

    PHP 1 views posted 8 years ago by freezy
  26. FAV

    LDG)PHP Log class

    A Class to Logging false logins and more...
    PHP 8 views posted 8 years ago by Darksider3
  27. FAV

    MyRSS - A Class to create A RSS feed

    No Comment^^
    PHP 6 views posted 8 years ago by Darksider3
  28. FAV

    Wordpress - Add CSS class to latest post

    PHP 2 views posted 8 years ago by kbrown
  29. FAV

    Wordpress Text Widget with Class

    PHP 3 views posted 8 years ago by willem
  30. FAV

    WordPress extended body class

    PHP 3 views posted 8 years ago by nathanbweb
« Prev 1 2 3