|
Content with label classes in Development (See content from all spaces)
Related Labels:
developer, mambo46, api, coding, methods, csv, extensions
Using Class Methods
article is part Three of the series of articles about developing extensions with compatibility in mind Developing Extensions for Compatibility. In the previous section, we talked about using functions dev:Using Functions to return information. We're likely to build up ...
Other labels:
developer, extensions, mambo46, coding
|
CSV Export Class - Finished Product
beauty of this class is you can download any query with just a couple of lines of code. I've used it to download a table, a simple query, and a joined query. In each case, I was able to import the csv into both MS Excel and MS Access ...
Other labels:
developer, mambo46
|
CSV Export Class - Pushing the content
All we need to do now is push the zip file to the browser. This is where I've run into trouble in the past. It's also why I'm changing directories and working without file paths. We'll do a quick browser check, send the appropriate ...
Other labels:
developer, mambo46
|
CSV Export Class - Zip File
We have our csv text ready to export. The first thing we'll do is create a temporary file we can use when we create the zip file. I'm going to do something a little different here. I've ...
Other labels:
developer, mambo46
|
Field Names on First Row
Now we have a field list with all the field information we need. If we want field names on the first row of our csv file all we have to do is step through the field list and create the text. Here's ...
Other labels:
developer, mambo46
|
The Field List
we're going to delimit some of our fields, we need a way of extracting information about those fields. We'll set up a field list to hold the information we need. Initially, I used a simple sql query: $sql ...
Other labels:
developer, mambo46
|
Exporting CSV files with Mambo
CSV Export Class Summary Recently, a client asked me to add csv downloads of some data. I did some searching and looked at a few scripts but couldn't really find what I was looking for. So I wound up ...
Other labels:
developer, mambo46, csv
|
HTML Output Class Redefined
HTML Output Class Introduction Not long ago, I got tired of passing certain common variables to every output function. So I decided to incorporate them into my output class instead. If you're familiar with the general layout of a typical ...
Other labels:
developer, mambo46
|
Helper Classes
Class mosHtmlHelper \ a helper class for rendering Mambo head tags. Can also be used to render certain html tags
Other labels:
api
|
Class mosHtmlHelper code
tags var $tags = array( 'title' => '<title>%s</title>', 'meta' => '<meta name="%s" content="%s" />', 'metalink' => '<link href="%s" title="%s"%s />', 'metalinkrel' => '<link rel="%s" href="%s" />', 'charset' => '<meta httpequiv="ContentType" content="text/html; charset=%s" />', 'css' => '<link href ...
Other labels:
coding, developer, api
|
|
|