email_image::get_priv_email (public)

 email_image::get_priv_email -user_id user_id \
    [ -subsite_id subsite_id ]

Defined in packages/acs-subsite/tcl/email-image-procs.tcl

Returns the priv_email field of the user from the users table.

Switches:
-user_id (required)
-subsite_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 email_image::get_user_email email_image::get_user_email (public) email_image::get_priv_email email_image::get_priv_email email_image::get_user_email->email_image::get_priv_email packages/acs-subsite/www/user/email-privacy-level.tcl packages/acs-subsite/ www/user/email-privacy-level.tcl packages/acs-subsite/www/user/email-privacy-level.tcl->email_image::get_priv_email ad_conn ad_conn (public) email_image::get_priv_email->ad_conn apm_package_ids_from_key apm_package_ids_from_key (public) email_image::get_priv_email->apm_package_ids_from_key db_string db_string (public) email_image::get_priv_email->db_string email_image::get_priv_email_from_parameter email_image::get_priv_email_from_parameter (private) email_image::get_priv_email->email_image::get_priv_email_from_parameter

Testcases:
No testcase defined.
Source code:
    set priv_level [db_string get_private_email {}]
    if {$priv_level eq "5"} {
        if {$subsite_id eq ""} {
            if {[ns_conn isconnected]} {
                set subsite_id [ad_conn subsite_id]
            } else {
                set subsite_id [lindex [apm_package_ids_from_key -package_key acs-subsite -mounted] 0]
            }
        }
        set priv_level [email_image::get_priv_email_from_parameter -subsite_id $subsite_id]
    }
    return $priv_level
Generic XQL file:
<fullquery name="email_image::get_priv_email.get_private_email">
    <querytext>
     
	  select priv_email
          from users		
          where user_id = :user_id
    
      </querytext>
</fullquery>
packages/acs-subsite/tcl/email-image-procs.xql

PostgreSQL XQL file:
packages/acs-subsite/tcl/email-image-procs-postgresql.xql

Oracle XQL file:
packages/acs-subsite/tcl/email-image-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: