module/Customize/src/Grid/Customize/Model/Rule/Mapper.php
public function findBySelector( $selector, $media = '', $rootId = null )
    {
        $where = array(
            'selector'  => (string) $selector,
            'media'     => (string) $media,
        );

        if ( empty( $rootId ) )
        {
            $where[] = new Predicate\IsNull( 'rootParagraphId' );
        }
        else
        {
            $where['rootParagraphId'] = (int) $rootId;
        }

        return $this->findOne( $where );
    }
public function findBySelector( $selector, $media = '', $rootId = null )
    {
        $where = array(
            'selector'  => (string) $selector,
            'media'     => (string) $media,
        );

        if ( empty( $rootId ) )
        {
            $where[] = new Predicate\IsNull( 'rootParagraphId' );
        }
        else
        {
            $where['rootParagraphId'] = (int) $rootId;
        }

        return $this->findOne( $where );
    }
public function findBySelector ( $ selector , $ media = '' , $ rootId = null ) { $ where = array ( 'selector' => ( string ) $ selector , 'media' => ( string ) $ media , ) ; if ( empty ( $ rootId ) ) { $ where [ ] = new Predicate \ IsNull ( 'rootParagraphId' ) ; } else { $ where [ 'rootParagraphId' ] = ( int ) $ rootId ; } return $ this -> findOne ( $ where ) ; }
Find structure by selector & media

@param string $selector
@param string $media [optional]
@param int $rootId [optional]
@return \Customize\Model\Rule\Structure
Find structure by selector & media