f_name = UI::truncate($this->name,Config::get('ellipse_threshold_title')); $this->f_type = ($this->type == 'private') ? UI::get_icon('lock', T_('Private')) : ''; $client = new User($this->user); $this->f_user = $client->fullname; } // format /** * has_access * This function returns true or false if the current user * has access to this playlist */ public function has_access() { if (!Access::check('interface','25')) { return false; } if ($this->user == $GLOBALS['user']->id) { return true; } else { return Access::check('interface','100'); } return false; } // has_access } // end playlist_object