Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

feedable: move to behavior

#40

from ceeram

<?php
class FeedableBehavior extends ModelBehavior {

/* * @param object $Model Model using the behavior * @param array $settings Settings to override for model. * @access public * @return void /

function setup(&$Model, $config = null) {
    $Model->_findMethods = array_merge($Model->_findMethods, array('feed'=>true));
    if (is_array($config)) {
        $this->settings[$Model->alias] = array_merge($this->_defaults, $config);            
    } else {
        $this->settings[$Model->alias] = $this->_defaults;
    }
}

function _findFeed($state, $query, $results = array()){

}

}

Reported by dogmatic69 · December 31st, 2009 @ 12:31 AM

State: resolved
Milestone: 0.5 alpha (core)

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.