Posted in March 2013

Basics

// JobeetJobTable.class.php function getActiveJobs() { $q = $this->createQuery(‘j’)->where(‘j.expires_at > ?’, date(‘Y-m-d H:i:s’, time())); return $q->execute(); } // still in JobeetJob_Table.class.php, this is overiding save() to set a auto expired date function save(Doctrine_Connection $conn) { if ($this->isNew() && !$this->expiredAt()) { $c = $this->getCreatedAt()? $this->getDateTimeObject(‘created_at’)->format(‘U’):time(); $this->setExpiredAt(date(‘Y-m-d H:i:s’, $c + 86400*30)); } parent::save($conn); } // JobeetJobCategoryTable.php function getWithJobs … Continue reading

Orion health

Senior Web Developers NZ Largest Software Development Company Flexible Fun and Social Culture Global Market Leader in Health Software A Little Bit About Us   Orion Health was founded in 1993 by current CEO Ian McCrae, employing 5 full time staff. Almost 20 years later and with employee numbers reaching over 650, Orion Health is … Continue reading

More action class

action.class.php function executeShow () { $this->job = Doctrine::getTable(‘jobeet_job’)->find($request->getParameter(‘id’)); $this->forward404Unless($this->job); } And in the template, one can do $job->getDateTimeObject(‘create_date’)->format(‘m/d/Y’); in layout.php use_javascripts() and use_stylesheets reads info from view.yml. One can also use slot() function to define slots in showSuccess.php

places

Three Kings “Urgent Notice Pre Auction Offer” open home 30/31 March 2-2:30pm. 1/9 Duke St. Panmure “Two bedroom Brick and Tile Home” listed 28 March. 5/20 Allenby Rd.  09 570 2039  

having a look at their admin site now…

Not sure what the GO card means. Is that like a gift card? I see there is a user privileges – manager, email, login, business… There is a login records. She seems to be a member of GrabOne but only has a Login credential. Credit card number, refunds, purchases, gift vouchers (give/received), discussion board, helpdesk … Continue reading

jquery selection condition

<!DOCTYPE html> <html> <head> <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script&gt; <meta charset=utf-8 /> <title>JS Bin</title> </head> <body> <div id=”myparent”> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> <li>7</li> </ul> </div> <div id=”another_thing”> <ol> <li>one</li> <li>two</li> </ol> </div> </body> </html> jQuery( function ($) { $(“li”).filter(“[class*=c]”).css(“color”, “red”); $(“li”).filter( function (i) {return i!=5;} ).css(“color”, “red”); } ); jQuery( function ($) { jq = … Continue reading

PHP Developer

SilverStripe / Drupal Chance to learn other languages if interested Progressive employer who advnaces it’s staff PHP has often been the poor cousin to .NET and Java but things are slowly starting to change. My client has a two decade pedigree at the coalface of software development on an enterprise scale and they are experiencing … Continue reading

jquery

<script type=”text/javascript”> $(document).ready(function() { var jq = $(‘label’); jq.slice(0, 2).css(“border”, “thick double black”); jq.slice(4).css(“border”, “thick solid red”); }); </script> …

jQuery method chaining

$(‘label’).css(“color”, “blue”).add(“input[name!=’rose’]”).filter(“[for!=’snowdrop’]”) The filter method removes all of the elements in a jQuery object that don’t meet a specified condition. I explain this method in more depth in Chapter 6, but for the moment it is enough to know that this allows me to remove any element from the jQuery object that has a for … Continue reading