Example #1
0
function site_output_private_quote_flg_views($private_flg = 0, $quote_flg = 0)
{
    $private_quote_flg = site_synthesize2private_quote_flg($private_flg, $quote_flg);
    $return = array();
    $return['label'] = site_output_label4private_quote_flg($private_quote_flg);
    $return['style'] = site_output_style4private_quote_flg($private_quote_flg);
    return $return;
}
Example #2
0
 private function _get_new_private_flg_and_quote_flg($id)
 {
     $row = $this->db_util->get_row4id('memo', $id, array('private_flg', 'quote_flg'), 'webmemo');
     $private_quote_flg_now = site_synthesize2private_quote_flg($row['private_flg'], $row['quote_flg']);
     $private_quote_flg_new = $private_quote_flg_now + 1;
     if (!UM_USE_QUOTE_ARTICLE_VIEW && $private_quote_flg_new == 1) {
         $private_quote_flg_new = 2;
     }
     if ($private_quote_flg_new > 2) {
         $private_quote_flg_new = 0;
     }
     $values = site_divide2private_quote_flg($private_quote_flg_new);
     return array($values['private_flg'], $values['quote_flg']);
 }