Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.layout.icons.icons.FTIContentIcon Class Reference
Inheritance diagram for plone.app.layout.icons.icons.FTIContentIcon:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.icons.icons.FTIContentIcon:
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 87 of file icons.py.


Constructor & Destructor Documentation

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

Definition at line 90 of file icons.py.

00090 
00091     def __init__(self, context, request, obj):
00092         self.context = context
00093         self.request = request
00094         self.obj = obj

Here is the caller graph for this function:


Member Function Documentation

Definition at line 105 of file icons.py.

00105 
00106     def description(self):
00107         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 109 of file icons.py.

00109 
00110     def title(self):
00111         return None
00112 

Here is the caller graph for this function:

Definition at line 99 of file icons.py.

00099 
00100     def url(self):
00101         portal_url = getToolByName(self.context, 'portal_url')()
00102         path = self.obj.getIcon()
00103         return "%s/%s" % (portal_url, path)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 91 of file icons.py.

Definition at line 96 of file icons.py.

Definition at line 93 of file icons.py.

Definition at line 92 of file icons.py.

Definition at line 95 of file icons.py.


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