コード例 #1
0
ファイル: Debug.php プロジェクト: idiscussforum/providence
 /**
  * Log stacktrace + optional message to debug bar
  *
  * @param string $ps_message Optional message to prefix stacktrace with
  */
 public static function trace($ps_message = null)
 {
     Debug::$bar['messages']->addMessage($ps_message . "\n" . caPrintStackTrace(array('skip' => 1)));
 }
コード例 #2
0
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$t_rep = $this->getVar('t_object_representation');
$vn_representation_id = $t_rep->getPrimaryKey();
$t_object = $this->getVar('t_object');
$va_display_options = $this->getVar('display_options');
$vs_display_type = $this->getVar('display_type');
$vs_show_version = $this->getVar('version');
$vs_container_id = $this->getVar('containerID');
$va_reps = $this->getVar('reps');
if (!$t_object) {
    print caPrintStackTrace();
}
$vn_object_id = $t_object->getPrimaryKey();
# --- when linked to from authority detail pages, use session var to make next and previous nav between reps
$va_authority_objects_results = $this->request->session->getVar("repViewerResults");
if ($vs_display_type == 'media_overlay') {
    if (sizeof($va_reps) > 1) {
        $vs_version = "icon";
        $vn_num_cols = 1;
        if (sizeof($va_reps) > 5) {
            $vn_num_cols = 2;
        }
        if (sizeof($va_reps) > 14) {
            $va_reps = $t_object->getRepresentations(array('tinyicon'), null, array("return_with_access" => $va_access_values));
            $vs_version = "tinyicon";
            $vn_num_cols = 2;