Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.layout.icons.icons.PloneSiteContentIcon Class Reference
Inheritance diagram for plone.app.layout.icons.icons.PloneSiteContentIcon:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.icons.icons.PloneSiteContentIcon:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def url
def description
def title
def html_tag

Public Attributes

 context
 request
 obj

Static Public Attributes

int width = 16
int height = 16

Detailed Description

Definition at line 113 of file icons.py.


Constructor & Destructor Documentation

def plone.app.layout.icons.icons.PloneSiteContentIcon.__init__ (   self,
  context,
  request,
  obj 
)

Definition at line 116 of file icons.py.

00116 
00117     def __init__(self, context, request, obj):
00118         self.context = context
00119         self.request = request
00120         self.obj = obj

Here is the caller graph for this function:


Member Function Documentation

Definition at line 130 of file icons.py.

00130 
00131     def description(self):
00132         return self.obj.Title()

Here is the caller graph for this function:

Definition at line 17 of file icons.py.

00017 
00018     def html_tag(self):
00019         
00020         if not self.url:
00021             return None
00022         
00023         tag = '<img width="%s" height="%s" src="%s"' % (self.width, self.height, self.url,)
00024         if self.title:
00025             tag += ' title="%s"' % self.title
00026         if self.description:
00027             tag += ' alt="%s"' % self.description
00028         tag += ' />'
00029         return tag
00030 

Definition at line 134 of file icons.py.

00134 
00135     def title(self):
00136         return None
00137 

Here is the caller graph for this function:

Definition at line 125 of file icons.py.

00125 
00126     def url(self):
00127         portal_url = getToolByName(self.context, 'portal_url')()
00128         return "%s/site_icon.gif" % portal_url

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 117 of file icons.py.

Definition at line 122 of file icons.py.

Definition at line 119 of file icons.py.

Definition at line 118 of file icons.py.

Definition at line 121 of file icons.py.


The documentation for this class was generated from the following file: