Alex (SirShurf) Frenkel's Blog

A web log of a PHP professional

Posts Tagged ‘Zend Studio

Using External SVN with Zend Studio (Eclipse)

leave a comment »

Well, it looks like I found finally how to work with SVN Externals in Zend Studio.

You cannot!

In order to work with SVN and Zend Studio you have to go to command line and work with SVN only. Figurs…

Advertisements

Written by Alex (Shurf) Frenkel

October 23, 2011 at 7:44 pm

Posted in IDE, SVN

Tagged with , ,

How to use Zend-Framework-PDF-Table-Helper

with 10 comments

Here is the example of how to user ZendFramework PDF-Table-Helper.

You can get the code from GitHub here:

One of the prerequisites is that you mast have the zf_autoloader on and configured since I am relaying on it to auto load files.

first you have to in instantiate the class:

$pdf = new SirShurf_Pdf_TableSet ();

You can instantiate it with a Zend_PDF object and without it, in which case it will be created for you, but if you are instantating with Zend_PDF you have to tell the system on what page you are working (Default is page 0).

Now what you need it to initialise a Table you are going to work with:
$objTableRow = $table->addRow ();

Each table can have his own number of columns and settings.
Each table can have a different number of rows a row can be added using this method:

And as with HTML a row has a number of cells (or columns):
$objTableRow->addCol ( $strCourseId, array (
'bold' => false, 'colspan' => 1, 'align' => 'center'
) );
$objTableRow->addCol ( Labadmin_Models_Static::convertHebrew ( $this->view->translate ( 'LBL_GRADE_FORM_COURSE_ID' ) ), array (
'bold' => false, 'colspan' => 1, 'align' => 'center', 'font' => 'arial.ttf', 'fontBold' => 'arialbd.ttf'
) );

The Cell can have each own definitions as the example here shows, and you can iterate over the data to create it.

And finally you can call render(); in order to render the changes to PDF, or build(‘fileName’) to save the finale PDF to a file.

$pdf->build ( $strGradeFileLocation . $intTimeStamp . ".grade.pdf" );

Written by Alex (Shurf) Frenkel

July 26, 2011 at 3:15 pm

Remove .svn files from directory list

with 4 comments

One of my projects had an old .svn files from the ckeditor checkout.

The problem was that there are too many directories to remove it manually so after some searches and tries here is the command to clean this .svn files.

find ./ -name ".svn" | xargs rm -Rf

Have Fun

Written by Alex (Shurf) Frenkel

May 4, 2011 at 4:52 pm

Posted in IDE, Uncategorized

Tagged with , , ,

Never change horses in midstream, or upgrade IDE in mid development.

leave a comment »

I have decided to upgrade my Zend Studio 7.2 Beta to the released version.

Well as I found out, NEVER change horses in midstream.

It took me most of the day to set up server connection again.

😦

Written by Alex (Shurf) Frenkel

May 14, 2010 at 12:46 pm

Posted in IDE

Tagged with ,