/**
  * Generates a "lock" symbol for the "Protected" column, if the current content
  * is protected. See WP's template.php -> display_page_row() for  more.
  *
  * @param type $column_name The name of the column to affect ('protected')
  * @param type $term_id The id of the page to check.
  */
 public static function render_term_protection_column($test, $column_name, $term_id)
 {
     //Only do this if we've got the right column
     if ($column_name === 'protected') {
         //If page is protected, return lock icon
         if (CTXPS_Queries::check_protection($term_id, 'term')) {
             CTX_Helper::img(array('alt' => __('Protected', 'contexture-page-security'), 'title' => __('Protected', 'contexture-page-security'), 'src' => CTXPSURL . 'images/protected-inline-2x.png', 'class' => "prot-icon prot-inline"));
         } else {
             if (CTXPS_Queries::check_term_protection($term_id, $_REQUEST['taxonomy'])) {
                 CTX_Helper::img(array('alt' => __('Protected (inherited)', 'contexture-page-security'), 'title' => __('Inheriting protection', 'contexture-page-security'), 'src' => CTXPSURL . 'images/protected-inline-descendant-2x.png', 'class' => "prot-icon prot-inline-descendant"));
             }
         }
     }
 }
 /**
  * Alias for CTXPS_Queries::check_protection. Internally, please use CTXPS_Queries
  * instead of this. Alias is provided for developer-friendliness only.
  *
  * @return bool Whether this page has the "protected page" flag
  */
 public static function check_protection($post_id)
 {
     return CTXPS_Queries::check_protection($post_id);
 }