LLMS_Admin_Reviews

Admin Reviews class


Description Description

This class handles the admin side of the reviews. It is responsible for creating the meta box on the course page (and in the future the membership page).


Source Source

File: includes/admin/class.llms.admin.reviews.php


			

Top ↑

Methods Methods

  • __construct — The constructor for the class. It adds the methods here to the appropriate actions. The actions are for: 1) Creating the custom column set in the llms_review post screen 2) Making a column sortable 3) Adding content to the column 4) Outputting the content.
  • add_review_meta_boxes — This function builds the additional content that is added to the course meta box. It builds the additional fields and then returns the updated array of fields
  • generate_column_data — This function entered the information into the course section of the llms_review post page. It takes the column that is being worked on, as well as the comment ID, then echoes the content required.
  • init — This function generates the custom column set. It takes in the array of standard columns, then modifies that set to contain the needed fields.
  • make_columns_sortable — This function makes the 'Course' column sortable
  • save_review_meta_boxes — This function handles the logic to save the information that is contained in the custom metabox. It looks at each of the values, then makes sure that there are proper default values so that the program doesn't go crashy crashy (nobody likes crashy crashy)

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.